Module heap

Source

Structs§

Address
An Address is just a H256 with a different name. Has a different ABI name than H256.
ArgBuffer
Helper structure for providing arguments to all SC call functions other than async_call_raw. It keeps argument lengths separately from the argument data itself. Argument data is concatenated into a single byte buffer.
AsyncCallError
Box
A pointer type that uniquely owns a heap allocation of type T.
BoxedBytes
Simple wrapper around a boxed byte slice, but with a lot of optimized methods for manipulating it. The focus is on reducing code size rather improving speed.
H256
Type that holds 32 bytes of data. Data is kept on the heap to keep wasm size low and avoid copies.
Queue
A simple queue struct that is able to push and pop without moving elements. New items are pushed at the end, just like for a regular Vec. When popping, instead of performing a regular Vec remove that would shift items, a start index is moved up 1 position. When serializing, items before the start index are ignored.
String
A UTF-8–encoded, growable string.
Vec
A contiguous growable array type, written as Vec<T>, short for ‘vector’.

Enums§

AsyncCallResult