wasmtime

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Heap

type Heap struct {
	// contains filtered or unexported fields
}

func NewHeap

func NewHeap(memory *wasmtime.Memory, allocator, dealloc *wasmtime.Func, store *wasmtime.Store) *Heap

func (*Heap) Clear

func (h *Heap) Clear() error

func (*Heap) ReadBytes

func (h *Heap) ReadBytes(ptr int32, length int32) []byte

func (*Heap) ReadString

func (h *Heap) ReadString(ptr int32, length int32) string

func (*Heap) Write

func (h *Heap) Write(bytes []byte, from string) (int32, error)

func (*Heap) WriteAndTrack

func (h *Heap) WriteAndTrack(bytes []byte, track bool, from string) (int32, error)

func (*Heap) WriteAtPtr

func (h *Heap) WriteAtPtr(bytes []byte, ptr int32, from string) (int32, error)

type Module

type Module struct {
	// contains filtered or unexported fields
}

func (*Module) Close

func (m *Module) Close(ctx context.Context) error

func (*Module) ExecuteNewCall

func (m *Module) ExecuteNewCall(ctx context.Context, call *wasm.Call, cachedInstance wasm.Instance, arguments []wasm.Argument) (returnInstance wasm.Instance, err error)

func (*Module) NewInstance added in v1.1.9

func (m *Module) NewInstance(ctx context.Context) (instance wasm.Instance, err error)

Jump to

Keyboard shortcuts

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