[−][src]Function core::arch::wasm32::memory::size
pub unsafe fn size(mem: i32) -> i32
This is supported on MIPS only.
Corresponding intrinsic to wasm's memory.size
instruction
This function, when called, will return the current memory size in units of pages.
The argument mem
is the numerical index of which memory to return the
size of. Note that currently wasm only supports one memory, so specifying
a nonzero value will likely result in a runtime validation error of the
wasm module.