[−][src]Module holochain_wasm_utils::memory_allocation
Structs
| SinglePageAllocation |
SinglePageAllocation is a memory allocation garanteed to fit in a WASM 64KiB Memory Page |
| SinglePageStack |
Struct for managing a WASM 64KiB memory page as a stack |
Constants
| U16_MAX |
Functions
| decode_encoded_allocation | |
| u32_high_bits |
returns the u16 high bits from a u32 |
| u32_low_bits |
returns the u16 low bits from a u32 by doing a lossy cast |
| u32_split_bits |
splits the high and low bits of u32 into a tuple of u16, for destructuring convenience |
| u32_merge_bits |
merges 2x u16 into a single u32 |