Skip to main contentModule abi
Source - host_alloc
- Allocate
len bytes in the module’s linear memory and return the
pointer as a u32. Returns 0 for a zero-length request. - host_dealloc
- Free a buffer previously returned by
host_alloc (or packed into a
-> u64 ABI return). No-op for null pointers or zero length. - read_input⚠
- View the host-written input buffer as a byte slice.
- write_output
- Leak
bytes into linear memory and return the packed
(ptr << 32) | len the host uses to read and later free it.