Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BinaryReadBuffer

Read binary data to byte, string, int, float, etc.

Hierarchy

  • BinaryReadBuffer

Index

Constructors

constructor

Properties

Private _buffer

_buffer: Buffer

Private _offset

_offset: number = 0

Accessors

offset

  • get offset(): number

Methods

isEOF

  • isEOF(): boolean

readByte

  • readByte(): number

readBytes

  • readBytes(len: number): Buffer
  • Read raw bytes.

    Parameters

    • len: number

      The number of bytes to read.

    Returns Buffer

readChars

  • readChars(len?: number): string
  • Read the number of chars.

    Parameters

    • Default value len: number = 1

      The length of chars to read.

    Returns string

readColor

  • readColor(): number

readFloat

  • readFloat(): number

readInt

  • readInt(): number

readInt24

  • readInt24(): number

readShort

  • readShort(): number

readString

  • readString(): string

readUnsignedShort

  • readUnsignedShort(): number

remainingBytes

  • remainingBytes(): number

Generated using TypeDoc