wasm-spatial-core
    Preparing search index...

    Function checkMemoryAvailable

    • Check if estimated memory is available given the current WASM memory limit.

      Compares the estimated byte requirement against the configured maximum. Always returns true if no limit is set (max == 0).

      Arguments

      • estimated_bytes — Estimated memory needed for an operation.

      Returns

      true if there is enough memory, false if the estimate exceeds the limit.

      Parameters

      • estimated_bytes: number

      Returns boolean