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

    Function chunkBootImage

    • Splits a delta image into chunk files and the index that names them.

      pages ascend and data holds them in that order. The hashes are what applyBootImage checks each page against.

      Parameters

      • image: { byteLength: number; data: Uint8Array; pages: number[] }
      • meta: { context: string; handles: HandleRecord[]; streams: StreamRecord[] }
      • chunkPages: number = BOOT_IMAGE_CHUNK_PAGES

      Returns { files: Record<string, Uint8Array>; index: BootImageIndex }