wasmrw

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package wasmrw provides encoding helpers for WASM host function return values. Return values use a packed uint64: lower 32 bits = error code, upper 32 bits = byte length. Bit 62 indicates suspend (async host call).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(err error) uint64

Error returns the packed encoding for a host error (errorCode=1).

func OK

func OK() uint64

OK returns the packed encoding for success with 0-length result.

func OKWithLen

func OKWithLen(n uint32) uint64

OKWithLen returns the packed encoding for success with n bytes of output.

func Suspend

func Suspend() uint64

Suspend returns the packed encoding for a suspend (async) marker.

Types

This section is empty.

Jump to

Keyboard shortcuts

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