API0.1.1
    Preparing search index...

    Class Disk

    Index
    • zeroed: the store reads unwritten bytes as zeros (a new OPFS file, a MemoryStore), so zero fills only mark the blocks and don't write gigabytes of zeros.

      Parameters

      • store: Store
      • blockSize: number
      • blocks: number
      • Optionalo: { zeroed?: boolean }

      Returns Disk

    blocks: number
    blockSize: number
    care: Bitset

    Blocks that hold data: read from the source image, or written since.

    o: { zeroed?: boolean }
    store: Store
    zero: Bitset

    Blocks known to be all zeros (the sparse image says FILL 0 for them). A subset of care.

    • Parameters

      • block: number
      • Optionalcount: number

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Parameters

      • block: number
      • data: Uint8Array

      Returns Promise<void>

    • Marks blocks as zeros: written as zeros to the store, and sent as FILL 0. With zeroed, blocks never written are zeros already and skip the write; blocks that hold data are still overwritten.

      Parameters

      • block: number
      • count: number

      Returns Promise<void>