Constructors
constructor
- new TlBinaryReader(
objectsMap: undefined | TlReaderMap,
data: ArrayBuffer | ArrayBufferView,
start?: number,
): TlBinaryReader Parameters
- objectsMap: undefined | TlReaderMap
- data: ArrayBuffer | ArrayBufferView
- start: number = 0
Properties
Readonly
dataView
dataView: DataView
Readonly
objectsMap
pos
pos: number = 0
Readonly
uint8View
uint8View: Uint8Array
Methods
boolean
- boolean(): boolean
Returns boolean
bytes
- bytes(): Uint8Array
Returns Uint8Array
double
- double(): number
Returns number
float
- float(): number
Returns number
int
- int(): number
Returns number
int128
- int128(): Uint8Array
Returns Uint8Array
int256
- int256(): Uint8Array
Returns Uint8Array
int53
- int53(): number
Returns number
long
- long(unsigned?: boolean): Long
Parameters
- unsigned: boolean = false
object
- object(id?: number): unknown
Returns unknown
peekUint
- peekUint(): number
Returns number
raw
- raw(bytes?: number): Uint8Array
Returns Uint8Array
seek
- seek(delta: number): void
Returns void
seekTo
- seekTo(pos: number): void
Returns void
string
- string(): string
Returns string
uint
- uint(): number
Returns number
vector
- vector(reader?: (id?: number) => unknown, bare?: boolean): unknown[]
Parameters
- reader: (id?: number) => unknown = ...
- bare: boolean = false
Returns unknown[]
Static
deserializeObject
- deserializeObject<T>(
objectsMap: TlReaderMap,
data: Uint8Array,
start?: number,
): T Parameters
- objectsMap: TlReaderMap
- data: Uint8Array
- start: number = 0
Returns T
Static
manual
- manual(data: ArrayBuffer | ArrayBufferView, start?: number): TlBinaryReader
Parameters
- data: ArrayBuffer | ArrayBufferView
- start: number = 0
Reader for TL objects.