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

    Function chunkHeap

    • Splits bytes into rows that fit the record cap.

      Refuses a chunk size at or over the cap rather than letting SQLite reject the write halfway through a snapshot, which would leave a partial image that looks storable.

      Parameters

      • bytes: Uint8Array
      • chunkBytes: number = DEFAULT_CHUNK_BYTES

      Returns HeapChunk[]