Class HttpRangeReader

Represents a Reader instance used to fetch data from servers returning Accept-Ranges headers.

Hierarchy (View Summary)

Constructors

Properties

Methods

Constructors

Properties

readable: ReadableStream<any>

The ReadableStream instance.

size: number

The total size of the data in bytes.

Methods

  • Reads a chunk of data

    Parameters

    • index: number

      The byte index of the data to read.

    • length: number

      The length of the data to read in bytes.

    Returns Promise<Uint8Array<ArrayBufferLike>>

    A promise resolving to a chunk of data.