API0.1.1
    Preparing search index...

    Function readSparse

    • Streams a sparse image into a new Disk that open makes once the header says how big it is. A source that isn't sparse is refused: the caller decides what a raw image means.

      Parameters

      • source:
            | AsyncIterable<Uint8Array<ArrayBufferLike>, any, any>
            | ReadableStream<Uint8Array<ArrayBufferLike>>
      • open: (h: SparseHeader) => Disk | Promise<Disk>
      • Optionalo: ReadOptions

      Returns Promise<{ disk: Disk; header: SparseHeader }>