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