Skip to main content

initial_memory_bytes

Function initial_memory_bytes 

Source
pub fn initial_memory_bytes(wasm: &[u8]) -> Option<usize>
Expand description

The initial linear memory a cart commits at instantiation, in bytes, read from the wasm’s exported memory minimum. None when the wasm cannot be parsed or declares no exported memory.