drupflare/worker - v1.0.0
    Preparing search index...

    Function reassembleHeap

    • Rebuilds the full heap from an elided one. Pages not in pageIndex come back as zero.

      The result is byteLength long, NOT totalPages * pageBytes, because the last page is usually partial and a heap that is even one byte too long shifts nothing but still fails a digest compare.

      Parameters

      • elided: ElidedHeap
      • pageBytes: number = WASM_PAGE_BYTES

      Returns Uint8Array