Class RangeFinder<Context>

RangeFinder is the main API workhorse of the module. It manages the storage object and is responsible for tracking the number of bytes read and written from the source stream so that it could be reused for other requests.

Type Parameters

  • Context = void

Constructors

Methods

Constructors

Methods

  • Create a new stream or take a cached stream from the storage and skip bytes up to startOffset

    Parameters

    • startOffset: number

      Starting offset into the stream. All previous bytes will be skipped from the returned wrapper.

    • context: Context

      A reference that will be passed down to all storage methods.

    Returns Readable

    The wrapped readable stream that should be consumed or destroyed.