Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a data file on the browser platform.

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Private blob

blob: LocalFileSourceBrowser

Internal representation of the file

Accessors

byteLength

  • get byteLength(): Promise<number>

Methods

close

  • close(): void

Private loadBlob

  • loadBlob(blob: any): Promise<ArrayBuffer>

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

    • start: number = 0

      The offset at which the data will start loading

    • 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

Static fromSource

Generated using TypeDoc