runtimewasmer

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 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

NewBuilder creates a new WasmerBuilder

Types

type WasmerBuilder

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

WasmerBuilder is a Wasmer implementation of the instanceBuilder interface

func (*WasmerBuilder) New

type WasmerHostFn

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

WasmerHostFn describes a host function callable from within a Runnable module

type WasmerRuntime

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

WasmerRuntime is a Wasmer implementation of the runtimeInstance interface

func (*WasmerRuntime) Call

func (w *WasmerRuntime) Call(fn string, args ...interface{}) (interface{}, error)

func (*WasmerRuntime) Close

func (w *WasmerRuntime) Close()

Close closes the instance

func (*WasmerRuntime) Deallocate

func (w *WasmerRuntime) Deallocate(pointer int32, length int)

Deallocate deallocates memory in the instance

func (*WasmerRuntime) ReadMemory

func (w *WasmerRuntime) ReadMemory(pointer int32, size int32) []byte

ReadMemory reads memory from the instance

func (*WasmerRuntime) WriteMemory

func (w *WasmerRuntime) WriteMemory(data []byte) (int32, error)

WriteMemory writes memory into the instance

func (*WasmerRuntime) WriteMemoryAtLocation

func (w *WasmerRuntime) 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