Versions in this module Expand all Collapse all v0 v0.1.0 Jul 28, 2018 Changes in this version + var ErrInvalidArgumentCount = errors.New("exec: invalid number of arguments to function") + var ErrMultipleLinearMemories = errors.New("exec: more than one linear memories in module") + var ErrOutOfBoundsMemoryAccess = errors.New("exec: out of bounds memory access") + var ErrSignatureMismatch = errors.New("exec: signature mismatch in call_indirect") + var ErrUndefinedElementIndex = errors.New("exec: undefined element index") + var ErrUnreachable = errors.New("exec: reached unreachable") + type InvalidFunctionIndexError int64 + func (e InvalidFunctionIndexError) Error() string + type InvalidReturnTypeError int8 + func (e InvalidReturnTypeError) Error() string + type Process struct + func NewProcess(vm *VM) *Process + func (proc *Process) ReadAt(p []byte, off int64) (int, error) + func (proc *Process) Terminate() + func (proc *Process) WriteAt(p []byte, off int64) (int, error) + type VM struct + RecoverPanic bool + func NewVM(module *wasm.Module) (*VM, error) + func (vm *VM) ExecCode(fnIndex int64, args ...uint64) (rtrn interface{}, err error) + func (vm *VM) Memory() []byte