Trait wasmtime_runtime::RuntimeLinearMemory
source · [−]pub trait RuntimeLinearMemory {
fn size(&self) -> u32;
fn grow(&self, delta: u32) -> Option<u32>;
fn vmmemory(&self) -> VMMemoryDefinition;
}
Expand description
A linear memory
Required methods
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
fn vmmemory(&self) -> VMMemoryDefinition
Return a VMMemoryDefinition
for exposing the memory to compiled wasm code.