Trait marine_wasm_backend_traits::exports::Memory
source · pub trait Memory<WB: WasmBackend>: Memory<<WB as WasmBackend>::MemoryView, DelayedContextLifetime<WB>> + Clone + Send + Sync + 'static {
// Required method
fn size(&self, store: &mut <WB as WasmBackend>::ContextMut<'_>) -> usize;
}
Expand description
A wasm memory handle.
As it is only a handle to an object in Store
, cloning is cheap.
Required Methods§
sourcefn size(&self, store: &mut <WB as WasmBackend>::ContextMut<'_>) -> usize
fn size(&self, store: &mut <WB as WasmBackend>::ContextMut<'_>) -> usize
Get the size of the allocated memory in bytes.
Object Safety§
This trait is not object safe.