Module holochain_wasmer_guest::allocation[][src]

Functions

Allocate bytes that won’t be dropped by the allocator. Return the pointer to the leaked allocation so the host can write to it.

Free an allocation. Needed because we leak memory every time we call __allocate and write_bytes.

Attempt to consume bytes from a known guest_ptr and len.

Attempt to write a slice of bytes.