Expand description
§Tari WASM module ABI (application binary interface)
This library provides types and encoding that allow low-level communication between the Tari WASM runtime and the WASM modules.
Modules§
Structs§
- ArgDef
- Call
Header - Call
Info - Function
Def - Owned
Data - Takes ownership of a length-prefixed block of memory allocated by
tari_allocand provides access to the data. This is used when WASM is responsible for freeing memory. - Packed
Call Info Reader - Template
DefV1
Enums§
Constants§
- ABI_
TEMPLATE_ DEF_ GLOBAL_ NAME - The name of the global export that defines the template definition
- WASM_
PTR_ SIZE
Functions§
- alloc_
and_ encode - Allocates a length-prefixed block of memory containing the encoded value and returns a pointer to that value.
This memory should be freed using
tari_free. - call_
debug - Requests the engine to write debug data
- call_
engine - Calls the engine with the given operation and input, returning the decoded output.
- on_
panic ⚠ - Safety
- tari_
alloc - Allocates a length-prefixed block of memory of length
len+ 4 bytes. - tari_
debug ⚠ - Safety
- tari_
engine ⚠ - Safety
- tari_
free ⚠ - Frees a block of memory allocated by
tari_alloc. - wrap_
ptr