Class BiniDataView

Hierarchy

  • jDataView
    • BiniDataView

Constructors

Properties

[toStringTag]: string
buffer: any
byteLength: number
byteOffset: number
filePath: string

Methods

  • Parameters

    • Rest ...bytes: number[]

    Returns Buffer

  • Gets the BigInt64 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

    Parameters

    • byteOffset: number

      The place in the buffer at which the value should be retrieved.

    • Optional littleEndian: boolean

      If false or undefined, a big-endian value should be read.

    Returns bigint

  • Gets the BigUint64 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

    Parameters

    • byteOffset: number

      The place in the buffer at which the value should be retrieved.

    • Optional littleEndian: boolean

      If false or undefined, a big-endian value should be read.

    Returns bigint

  • Parameters

    • length: number
    • Optional byteOffset: number
    • Optional littleEndian: boolean
    • Optional toArray: boolean

    Returns number[]

  • Parameters

    • Optional byteOffset: number

    Returns string

  • Parameters

    • Optional byteOffset: number
    • Optional littleEndian: boolean

    Returns number

  • Parameters

    • Optional byteOffset: number
    • Optional littleEndian: boolean

    Returns number

  • Parameters

    • Optional byteOffset: number
    • Optional littleEndian: boolean

    Returns number

  • Parameters

    • Optional byteOffset: number
    • Optional littleEndian: boolean

    Returns number

  • Parameters

    • Optional byteOffset: number
    • Optional littleEndian: boolean

    Returns Int64

  • Parameters

    • Optional byteOffset: number

    Returns number

  • Parameters

    • bitLength: number
    • Optional byteOffset: number

    Returns number

  • Parameters

    • byteLength: number
    • Optional byteOffset: number
    • Optional encoding: string

    Returns string

  • Parameters

    • Optional byteOffset: number
    • Optional littleEndian: boolean

    Returns number

  • Parameters

    • Optional byteOffset: number
    • Optional littleEndian: boolean

    Returns number

  • Parameters

    • Optional byteOffset: number
    • Optional littleEndian: boolean

    Returns Uint64

  • Parameters

    • Optional byteOffset: number

    Returns number

  • Parameters

    • bitLength: number
    • Optional byteOffset: number

    Returns number

  • Reads the BINI file this data view is currently viewing.

    Parameters

    • byteLength: number

      the byteLength of the array passed in the ctor.

    Returns Section[]

  • Parameters

    • byteOffset: number

    Returns number

  • Stores a BigInt64 value at the specified byte offset from the start of the view.

    Parameters

    • byteOffset: number

      The place in the buffer at which the value should be set.

    • value: bigint

      The value to set.

    • Optional littleEndian: boolean

      If false or undefined, a big-endian value should be written.

    Returns void

  • Stores a BigUint64 value at the specified byte offset from the start of the view.

    Parameters

    • byteOffset: number

      The place in the buffer at which the value should be set.

    • value: bigint

      The value to set.

    • Optional littleEndian: boolean

      If false or undefined, a big-endian value should be written.

    Returns void

  • Parameters

    • byteOffset: number
    • bytes: number[]
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • byteOffset: number
    • char: string

    Returns void

  • Parameters

    • byteOffset: number
    • value: number
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • byteOffset: number
    • value: number
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • byteOffset: number
    • value: number
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • byteOffset: number
    • value: number
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • byteOffset: number
    • value: Int64
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • byteOffset: number
    • value: number

    Returns void

  • Parameters

    • byteOffset: number
    • value: number
    • bitLength: number

    Returns void

  • Parameters

    • byteOffset: number
    • chars: string
    • Optional encoding: string

    Returns void

  • Parameters

    • byteOffset: number
    • value: number
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • byteOffset: number
    • value: number
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • byteOffset: number
    • value: Uint64
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • byteOffset: number
    • value: number

    Returns void

  • Parameters

    • byteOffset: number
    • value: number
    • bitLength: number

    Returns void

  • Parameters

    • byteLength: number

    Returns number

  • Parameters

    • start: number
    • Optional end: number
    • Optional forceCopy: boolean

    Returns jDataView

  • Returns number

  • Parameters

    • string: string

    Returns Buffer

  • Parameters

    • bytes: Bytes

    Returns Buffer

  • Parameters

    • byteCount: number

    Returns Buffer

  • Parameters

    • bytes: number[]
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • char: string

    Returns void

  • Parameters

    • value: number
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • value: number
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • value: number
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • value: number
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • value: Int64
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • value: number

    Returns void

  • Parameters

    • value: number
    • bitLength: number

    Returns void

  • Parameters

    • chars: string
    • Optional encoding: string

    Returns void

  • Parameters

    • value: number
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • value: number
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • value: Uint64
    • Optional littleEndian: boolean

    Returns void

  • Parameters

    • value: number

    Returns void

  • Parameters

    • value: number
    • bitLength: number

    Returns void

Generated using TypeDoc