Options
All
  • Public
  • Public/Protected
  • All
Menu

The minimal interface needed for an object to be considered a data source

Hierarchy

  • DataSource

Implemented by

Index

Properties

Methods

Properties

byteLength

byteLength: Promise<number>

The total length, in bytes, of the data source.

Methods

loadData

  • loadData(start?: number, end?: number): Promise<ArrayBuffer>
  • Loads the data source into an ArrayBuffer. Optionally a start and end can be specified to load a part of the data.

    Parameters

    • Optional start: number

      The offset at which the data will start loading

    • Optional end: number

      The offset at which the data will stop loading

    Returns Promise<ArrayBuffer>

slice

  • Slices the data source and returns a new data source pointing at the data within the specified boundaries.

    Parameters

    • start: number

      Pointer to the start of the data in bytes

    • end: number

      Pointer to the end of the data in bytes

    Returns DataSource

Generated using TypeDoc