package
0.6.0
Repository: https://github.com/go-interpreter/wagon.git
Documentation: pkg.go.dev

# Packages

Package leb128 provides functions for reading integer values encoded in the Little Endian Base 128 (LEB128) format: https://en.wikipedia.org/wiki/LEB128.
Package operators provides all operators used by WebAssembly bytecode, together with their parameter and return type(s).

# Functions

DecodeModule is the same as ReadModule, but it only decodes the module without initializing the index space or resolving imports.
EncodeModule writes a provided module to w using WASM binary encoding.
NewModule creates a new empty module.
No description provided by the author
ReadModule reads a module from the reader r.
No description provided by the author

# Constants

No description provided by the author
A list of well-known custom sections.
ElemTypeAnyFunc descibres an any_func value.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TypeFunc represents the value type of a function.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

DataSegment describes a group of repeated elements that begin at a specified offset in the linear memory.
ElementSegment describes a group of repeated elements that begin at a specified offset.
ExportEntry represents an exported entry by the module.
No description provided by the author
No description provided by the author
Function represents an entry in the function index space of a module.
No description provided by the author
FunctionNames is a set of names for functions.
FunctionSig describes the signature of a declared function in a WASM module.
GlobalEntry declares a global variable.
GlobalVar describes the type and mutability of a declared global variable.
No description provided by the author
ImportEntry describes an import statement in a Wasm module.
InvalidImportError is returned when the export of a resolved module doesn't match the signature of its import declaration.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LocalNames is a set of local variable names for functions.
No description provided by the author
No description provided by the author
Module represents a parsed WebAssembly module: http://webassembly.org/docs/modules/.
ModuleName is the name of a module.
NameSection is a custom section that stores names of modules, functions and locals for debugging purposes.
RawSection is a declared section in a WASM module.
ResizableLimits describe the limit of a table or linear memory.
SectionCode describes the body for every function declared inside a module.
No description provided by the author
SectionData describes the initial values of a module's linear memory.
SectionElements describes the initial contents of a table's elements.
SectionExports declares the export section of a module.
SectionFunction declares the signature of all functions defined in the module (in the code section).
SectionGlobals defines the value of all global variables declared in a module.
SectionImports declares all imports that will be used in the module.
SectionMemories describes all linear memories used by a module.
SectionStartFunction represents the start function section.
SectionTables describes all tables declared by a module.
SectionTypes declares all function signatures that will be used in a module.
Table describes a table in a Wasm module.
No description provided by the author

# Interfaces

Import is an interface implemented by types that can be imported by a WebAssembly module.
No description provided by the author
NameSubsection is an interface for subsections of NameSection.
Section is a generic WASM section interface.
No description provided by the author

# Type aliases

BlockType represents the signature of a structured block.
No description provided by the author
ElemType describes the type of a table's elements.
External describes the kind of the entry being imported or exported.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NameMap maps an index of the entry to a name.
NameType is the type of name subsection.
ResolveFunc is a function that takes a module name and returns a valid resolved module.
SectionID is a 1-byte code that encodes the section code of both known and custom sections.
ValueType represents the type of a valid value in Wasm.