Constructors

  • Parameters

    • buffer: ArrayBuffer

    Returns BufferReader

Properties

position: number = 0

Accessors

  • get remaining(): number
  • Returns number

Methods

  • Asserts that at least size bytes are remaining.

    Parameters

    • size: number

    Returns void

  • Returns boolean

  • Reads from the current position into a sliced array buffer of the given size.

    Parameters

    • count: number

    Returns ArrayBuffer

  • Reads the next Float32 value.

    Parameters

    • OptionallittleEndian: boolean

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

    Returns number

  • Reads the next Float64 value.

    Parameters

    • OptionallittleEndian: boolean

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

    Returns number

  • Reads the next Int16 value.

    Parameters

    • OptionallittleEndian: boolean

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

    Returns number

  • Reads the next Int32 value.

    Parameters

    • OptionallittleEndian: boolean

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

    Returns number

  • Reads the next Int64 value.

    Parameters

    • OptionallittleEndian: boolean

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

    Returns bigint

  • Reads the next Int8 value.

    Returns number

  • Reads the given number of characters into a byte string.

    Parameters

    • length: number

    Returns string

  • Reads the next Uint16 value.

    Parameters

    • OptionallittleEndian: boolean

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

    Returns number

  • Reads the next Uint32 value.

    Parameters

    • OptionallittleEndian: boolean

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

    Returns number

  • Reads the next Uint64 value.

    Parameters

    • OptionallittleEndian: boolean

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

    Returns bigint

  • Reads the next Uint8 value.

    Returns number

  • Reads the given number of characters into a UTF-16 string.

    Parameters

    • length: number

    Returns string

  • Parameters

    • bytes: number

    Returns void