wasm-spatial-core
    Preparing search index...

    Function getAllocatedBytes

    • 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.

      Returns number