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

    Type Alias ElidedHeap

    A heap with its all-zero pages removed, plus the index needed to put them back.

    pageIndex holds the page numbers that were KEPT, ascending. Everything not listed was all zero and is restored as zero, which is what a fresh WebAssembly.Memory already contains.

    type ElidedHeap = {
        byteLength: number;
        bytes: Uint8Array;
        pageBytes: number;
        pageIndex: number[];
        totalPages: number;
    }
    Index
    byteLength: number

    length of the original heap in bytes

    bytes: Uint8Array

    the retained pages, concatenated in pageIndex order

    pageBytes: number

    bytes actually retained

    pageIndex: number[]

    page numbers retained, ascending

    totalPages: number

    pages in the original heap