Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BinaryReader

Index

Properties

offset: number

Constructors

Methods

  • readByte(): number
  • readInt(signed?: boolean): number
  • readLong(signed?: boolean): BigInteger
  • readFloat(): number
  • readDouble(): number
  • readLargeInt(bits: number, signed?: boolean): BigInteger
  • read(length?: number, checkLength?: boolean): Buffer
  • Read the given amount of bytes, or -1 to read all remaining.

    Parameters

    • length: number = -1
    • checkLength: boolean = true

      whether to check if the length overflows or not.

    Returns Buffer

  • getBuffer(): Buffer
  • tgReadBytes(): Buffer
  • tgReadString(): string
  • tgReadBool(): boolean
  • tgReadDate(): Date
  • tgReadObject(): any
  • tgReadVector(): any[]
  • tellPosition(): number
  • setPosition(position: number): void
  • seek(offset: number): void

Generated using TypeDoc