package
0.9.4
Repository: https://github.com/chenxiao-zhao/poly.git
Documentation: pkg.go.dev

# Functions

todo add parameters.
No description provided by the author
NewVM creates a new VM from a given module.

# Constants

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

# Variables

ErrInvalidArgumentCount is returned by (*VM).ExecCode when an invalid number of arguments to the WebAssembly function are passed to it.
ErrMultipleLinearMemories is returned by (*VM).NewVM when the module has more then one entries in the linear memory space.
ErrOutOfBoundsMemoryAccess is the error value used while trapping the VM when it detects an out of bounds access to the linear memory.
ErrSignatureMismatch is the error value used while trapping the VM when a signature mismatch between the table entry and the type entry is found in a call_indirect operation.
ErrUndefinedElementIndex is the error value used while trapping the VM when an invalid index to the module's table space is used as an operand to call_indirect.
ErrUnreachable is the error value used while trapping the VM when an unreachable operator is reached during execution.

# Structs

No description provided by the author
store env call message.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
VM is the execution context for executing WebAssembly bytecode.

# Interfaces

No description provided by the author

# Type aliases

InvalidFunctionIndexError is returned by (*VM).ExecCode when the function index provided is invalid.
InvalidReturnTypeError is returned by (*VM).ExecCode when the module specifies an invalid return type value for the executed function.