Versions in this module Expand all Collapse all v0 v0.5.1 Dec 9, 2022 v0.5.0 Nov 17, 2022 Changes in this version + var ErrExportNotFound = errors.New("the requested export is not found in the module") + func InternalLogger() *vlog.Logger + func UseInternalLogger(l *vlog.Logger) + type HostFn struct + ArgCount int + HostFn innerFunc + Name string + Returns bool + func NewHostFn(name string, argCount int, returns bool, fn innerFunc) HostFn + type RuntimeBuilder interface + New func() (RuntimeInstance, error) + type RuntimeInstance interface + Call func(fn string, args ...interface{}) (interface{}, error) + Close func() + Deallocate func(pointer int32, length int) + ReadMemory func(pointer int32, size int32) []byte + WriteMemory func(data []byte) (int32, error) + WriteMemoryAtLocation func(pointer int32, data []byte) + type WasmEnvironment struct + UUID string + func NewEnvironment(builder RuntimeBuilder) *WasmEnvironment + func (w *WasmEnvironment) AddInstance() error + func (w *WasmEnvironment) RemoveInstance() error + func (w *WasmEnvironment) UseInstance(ctx *scheduler.Ctx, instFunc func(*WasmInstance, int32)) error + type WasmInstance struct + func InstanceForIdentifier(ident int32, needsFFIResult bool) (*WasmInstance, error) + func (w *WasmInstance) Call(fn string, args ...interface{}) (interface{}, error) + func (w *WasmInstance) Ctx() *scheduler.Ctx + func (w *WasmInstance) Deallocate(pointer int32, length int) + func (w *WasmInstance) ExecutionResult() ([]byte, error) + func (w *WasmInstance) ReadMemory(pointer int32, size int32) []byte + func (w *WasmInstance) SendExecutionResult(result []byte, runErr error) + func (w *WasmInstance) WriteMemory(data []byte) (int32, error) + func (w *WasmInstance) WriteMemoryAtLocation(pointer int32, data []byte)