Expand description
Low-level linear-memory ABI: allocation, deallocation, and buffer packing across the Wasm host/guest boundary.
Functions§
- host_
alloc - Allocate
lenbytes in the module’s linear memory and return the pointer as au32. Returns0for a zero-length request. - host_
dealloc - Free a buffer previously returned by
host_alloc(or packed into a-> u64ABI return). No-op for null pointers, zero length, or an oversized length that could not have been allocated. - read_
input ⚠ - View the host-written input buffer as a byte slice.
- write_
output - Leak
bytesinto linear memory and return the packed(ptr << 32) | lenthe host uses to read and later free it.