[][src]Module holochain_wasmer_guest::allocation

Functions

__allocate

allocate a length plus a length prefix in bytes that won't be dropped by the allocator return the pointer to it so a length prefix + bytes can be written to the allocation

__deallocate

free a length-prefixed allocation needed because we leak memory every time we call __allocate and write_bytes

consume_bytes

attempt to consume bytes out of a length-prefixed allocation at the given pointer position

length_prefix_at_guest_ptr

attempt to extract the length at the given guest_ptr

write_bytes

attempt to write a slice of bytes into a length prefixed allocation