package util

import "github.com/tetratelabs/wazero/internal/gojs/util"

Index

Functions

func MustRead

func MustRead(mem api.Memory, funcName string, paramIdx int, offset, byteCount uint32) []byte

MustRead is like api.Memory except that it panics if the offset and byteCount are out of range.

func MustWrite

func MustWrite(mem api.Memory, fieldName string, offset uint32, val []byte)

MustWrite is like api.Memory except that it panics if the offset is out of range.

func NewFunc

func NewFunc(name string, goFunc api.GoModuleFunc) *wasm.HostFunc

Source Files

util.go

Version
v1.0.0-pre.8
Published
Jan 31, 2023
Platform
linux/amd64
Imports
4 packages
Last checked
10 minutes ago

Tools for package owners.