wasm

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer uint64

func FromSlice

func FromSlice(value []byte) Buffer

func Malloc added in v1.13.0

func Malloc(size uint32) Buffer

func Store added in v1.13.0

func Store(ctx context.Context, module api.Module, data []byte) (Buffer, error)

func (Buffer) Address

func (buffer Buffer) Address() uint32

func (Buffer) Length

func (buffer Buffer) Length() uint32

func (Buffer) Load added in v1.13.0

func (buffer Buffer) Load(module api.Module) []byte

func (Buffer) Slice

func (buffer Buffer) Slice() []byte

func (Buffer) String

func (buffer Buffer) String() string

type String

type String uint64

func FromString

func FromString(value string) String

func (String) Address added in v1.13.0

func (value String) Address() uint32

func (String) Length added in v1.13.0

func (value String) Length() uint32

func (String) Load

func (value String) Load(module api.Module) string

func (String) LoadBytes

func (value String) LoadBytes(module api.Module) []byte

func (String) Store added in v1.13.0

func (value String) Store(ctx context.Context, module api.Module, data string) (String, error)

func (String) String added in v1.13.0

func (value String) String() string

Jump to

Keyboard shortcuts

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