package util
import "github.com/tetratelabs/wazero/internal/gojs/util"
Index ¶
- func MustRead(mem api.Memory, funcName string, paramIdx int, offset, byteCount uint32) []byte
- func MustWrite(mem api.Memory, fieldName string, offset uint32, val []byte)
- func NewFunc(name string, goFunc api.GoModuleFunc) *wasm.HostFunc
Functions ¶
func MustRead ¶
MustRead is like api.Memory except that it panics if the offset and byteCount are out of range.
func MustWrite ¶
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 ¶
- 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.