IFClite TypeScript API
    Preparing search index...

    Interface RangeByteSource

    Random-access byte source: the seam that lets one reader work over a local File/Blob (BlobByteSource) or a remote file through HTTP Range requests (HttpRangeSource) without ever holding the whole file (#6869).

    interface RangeByteSource {
        size: number;
        read(
            start: number,
            end: number,
            signal?: AbortSignal,
        ): Promise<Uint8Array<ArrayBufferLike>>;
    }

    Implemented by

    Index
    size: number

    Total size in bytes.

    • Bytes [start, end), clamped to the source size. A caller that needs every byte it asked for must check the returned length.

      Parameters

      • start: number
      • end: number
      • Optionalsignal: AbortSignal

      Returns Promise<Uint8Array<ArrayBufferLike>>