package encoding
import "github.com/open-policy-agent/opa/internal/wasm/encoding"
Package encoding implements WASM module reading and writing.
Index ¶
- func CodeEntries(m *module.Module) ([]*module.CodeEntry, error)
- func ReadCodeEntry(r io.Reader) (*module.CodeEntry, error)
- func ReadModule(r io.Reader) (*module.Module, error)
- func WriteCodeEntry(w io.Writer, entry *module.CodeEntry) error
- func WriteModule(w io.Writer, module *module.Module) error
Functions ¶
func CodeEntries ¶
CodeEntries returns the WASM code entries contained in r.
func ReadCodeEntry ¶
ReadCodeEntry reads a binary-encoded WASM code entry from r.
func ReadModule ¶
ReadModule reads a binary-encoded WASM module from r.
func WriteCodeEntry ¶
WriteCodeEntry writes a binary encoded representation of entry to w.
func WriteModule ¶
WriteModule writes a binary-encoded representation of module to w.
Source Files ¶
- Version
- v1.4.2 (latest)
- Published
- May 2, 2025
- Platform
- linux/amd64
- Imports
- 12 packages
- Last checked
- 6 hours ago –
Tools for package owners.