[−][src]Module holochain_wasmer_host::allocation
Constants
ALLOCATION_BYTES_ITEMS | Need Allocation to be u8 to copy as bytes across host/guest |
ALLOCATION_ITEMS | Allocation is a 2 item u64 slice of offset/length |
Functions
allocate | allocate a length of bytes that won't be dropped by the allocator return the pointer to it so bytes can be written to the allocation |
deallocate | restore an allocation so that it is dropped immediately this needs to be called on anything allocated above as the allocator will never free the memory otherwise |
deallocate_from_allocation_ptr | |
from_allocation_ptr | |
to_allocation_ptr |
Type Definitions
Allocation | |
AllocationBytes |