runtimewasmtime

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuilder

func NewBuilder(ref *tenant.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

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) Close

func (w *WasmtimeInstance) Close()

Close closes the instance

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL