Context used by
Function to interact with the allocator and the memory of the wasm instance.
Read memory into the given
dest buffer from
Write the given data at
address into the memory.
pub fn allocate_memory(&mut self, size: WordSize) -> Result<Pointer<u8>>
Allocate a memory instance of
pub fn deallocate_memory(&mut self, ptr: Pointer<u8>) -> Result<()>
Deallocate a given memory instance.
Provides access to the sandbox.
Read memory from
address into a vector.