Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

Accessors

Methods

Constructors

constructor

Accessors

byteLength

  • get byteLength(): Promise<number>

Methods

Abstract close

  • close(): void
  • Closes the local file handle for the current platform. After this function is called all subsequent operations on this file, or any other data sources depending on this file, will fail.

    Returns void

Abstract loadData

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

    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 file and returns a data chunk 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