Get the approximate number of allocated bytes in WASM linear memory.
This reads the current memory.buffer.byteLength. Note that WASM memory only grows (never shrinks), so this value is the peak allocation size.
memory.buffer.byteLength
Returns 0 on non-WASM targets.
Get the approximate number of allocated bytes in WASM linear memory.
This reads the current
memory.buffer.byteLength. Note that WASM memory only grows (never shrinks), so this value is the peak allocation size.Returns 0 on non-WASM targets.