Trait wasmtime_runtime::RuntimeLinearMemory [−][src]
pub trait RuntimeLinearMemory: Send + Sync { fn size(&self) -> u32; fn maximum(&self) -> Option<u32>; fn grow(&mut self, delta: u32) -> Option<u32>; fn vmmemory(&self) -> VMMemoryDefinition; }
Expand description
A linear memory
Required methods
Returns the maximum number of pages the memory can grow to.
Returns None if the memory is unbounded.
Grow memory by the specified amount of wasm pages.
Returns None if memory can’t be grown by the specified amount
of wasm pages.
fn vmmemory(&self) -> VMMemoryDefinition[src]
fn vmmemory(&self) -> VMMemoryDefinition[src]Return a VMMemoryDefinition for exposing the memory to compiled wasm code.