Documentation ¶
Index ¶
- Variables
- func Remove(ident int32)
- func Store(inst *Instance) (int32, error)
- type Instance
- func (w *Instance) Call(fn string, args ...interface{}) (interface{}, error)
- func (w *Instance) Close()
- func (w *Instance) Ctx() *scheduler.Ctx
- func (w *Instance) Deallocate(pointer int32, length int)
- func (w *Instance) ExecutionResult() ([]byte, error)
- func (w *Instance) ReadMemory(pointer int32, size int32) []byte
- func (w *Instance) SendExecutionResult(result []byte, runErr error)
- func (w *Instance) UseCtx(ctx *scheduler.Ctx)
- func (w *Instance) WriteMemory(data []byte) (int32, error)
- func (w *Instance) WriteMemoryAtLocation(pointer int32, data []byte)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrExportNotFound = errors.New("the requested export is not found in the module")
Functions ¶
Types ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func New ¶
func New(inst *wasmtime.Instance, store *wasmtime.Store) *Instance
New creates a new Instance wrapper
func (*Instance) Deallocate ¶
Deallocate deallocates memory in the instance
func (*Instance) ExecutionResult ¶
ExecutionResult gets the module's execution results
func (*Instance) ReadMemory ¶
ReadMemory reads memory from the instance
func (*Instance) SendExecutionResult ¶
SendExecutionResult allows FFI functions to send the run result
func (*Instance) WriteMemory ¶
WriteMemory writes memory into the instance
func (*Instance) WriteMemoryAtLocation ¶
WriteMemoryAtLocation writes memory at the given location
Click to show internal directories.
Click to hide internal directories.