[][src]Trait wasmtime_runtime::RuntimeLinearMemory

pub trait RuntimeLinearMemory {
    pub fn size(&self) -> u32;
pub fn grow(&self, delta: u32) -> Option<u32>;
pub fn vmmemory(&self) -> VMMemoryDefinition; }

A linear memory

Required methods

pub fn size(&self) -> u32[src]

Returns the number of allocated wasm pages.

pub fn grow(&self, delta: u32) -> Option<u32>[src]

Grow memory by the specified amount of wasm pages.

Returns None if memory can't be grown by the specified amount of wasm pages.

pub fn vmmemory(&self) -> VMMemoryDefinition[src]

Return a VMMemoryDefinition for exposing the memory to compiled wasm code.

Loading content...

Implementors

Loading content...