See https://github.com/vimaec/bfast for bfast format spec This implementation can either lazily request content as needed from http Or it can serve the data directly from an ArrayBuffer Remote mode can transition to buffer mode if server doesnt support partial http request

Hierarchy

  • BFast

Constructors

  • Parameters

    • source: ArrayBuffer | RemoteBuffer
    • Optional offset: number
    • Optional name: string

    Returns BFast

Properties

name: string
offset: number
source: ArrayBuffer | RemoteBuffer

Methods

  • Forces download of the full underlying buffer, from now on all calls will be local.

    Returns Promise<void>

  • Returns a number array from the buffer associated with name

    Parameters

    • name: string

      buffer name

    Returns Promise<NumericArray>

  • Returns the buffer associated with name as a new bfast. This value is cached for future requests.

    Parameters

    • name: string

      buffer name

    Returns Promise<BFast>

  • Returns the raw buffer associated with a name This value is not cached.

    Parameters

    • name: string

      buffer name

    Returns Promise<ArrayBuffer>

  • Returns the buffer with given name as a byte array

    Parameters

    • name: string

      buffer name

    Returns Promise<Uint8Array>

  • Returns

    Bfast Header

    Returns Promise<BFastHeader>

  • Parameters

    • name: string

    Returns Promise<BFast>

  • Parameters

    • name: string

    Returns Promise<Range>

  • Returns

    a map of all buffers by names

    Returns Promise<Map<string, Range>>

  • Returns a map of name-values with the same index from all buffers.

    Parameters

    • index: number

    Returns Promise<Map<string, number | BigInt>>

  • Returns a new local bfast equivalent to this bfast.

    Returns Promise<BFast>

  • Returns a single value from given buffer name

    Parameters

    • name: string

      buffer name

    • index: number

      row index

    Returns Promise<number | BigInt>

  • Returns count subsequent values from given buffer name.

    Parameters

    • name: string

      buffer name

    • index: number

      row index

    • count: number

      count of values to return

    Returns Promise<NumericArray>

Generated using TypeDoc