Documentation ¶
Index ¶
- func NewBuilder(ref *moduleref.WasmModuleRef, api api.HostAPI) runtime.RuntimeBuilder
- type WasmtimeBuilder
- type WasmtimeInstance
- func (w *WasmtimeInstance) Call(fn string, args ...interface{}) (interface{}, error)
- func (w *WasmtimeInstance) Close()
- func (w *WasmtimeInstance) Deallocate(pointer int32, length int)
- func (w *WasmtimeInstance) ReadMemory(pointer int32, size int32) []byte
- func (w *WasmtimeInstance) WriteMemory(data []byte) (int32, error)
- func (w *WasmtimeInstance) WriteMemoryAtLocation(pointer int32, data []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBuilder ¶
func NewBuilder(ref *moduleref.WasmModuleRef, api api.HostAPI) runtime.RuntimeBuilder
NewBuilder creates a new WasmtimeBuilder
Types ¶
type WasmtimeBuilder ¶
type WasmtimeBuilder struct {
// contains filtered or unexported fields
}
WasmtimeBuilder is a Wasmer implementation of the instanceBuilder interface
func (*WasmtimeBuilder) New ¶
func (w *WasmtimeBuilder) New() (runtime.RuntimeInstance, error)
type WasmtimeInstance ¶
type WasmtimeInstance struct {
// contains filtered or unexported fields
}
func (*WasmtimeInstance) Call ¶
func (w *WasmtimeInstance) Call(fn string, args ...interface{}) (interface{}, error)
func (*WasmtimeInstance) Deallocate ¶
func (w *WasmtimeInstance) Deallocate(pointer int32, length int)
Deallocate deallocates memory in the instance
func (*WasmtimeInstance) ReadMemory ¶
func (w *WasmtimeInstance) ReadMemory(pointer int32, size int32) []byte
ReadMemory reads memory from the instance
func (*WasmtimeInstance) WriteMemory ¶
func (w *WasmtimeInstance) WriteMemory(data []byte) (int32, error)
WriteMemory writes memory into the instance
func (*WasmtimeInstance) WriteMemoryAtLocation ¶
func (w *WasmtimeInstance) WriteMemoryAtLocation(pointer int32, data []byte)
WriteMemoryAtLocation writes memory at the given location
Click to show internal directories.
Click to hide internal directories.