Constructors
constructor
- new TlBinaryWriter(objectMap, data, start?): TlBinaryWriter
Parameters
- objectMap: undefined | TlWriterMap
- data: ArrayBuffer
- start: number = 0
Properties
Readonly
dataView
dataView: DataView
Readonly
uint8View
uint8View: Uint8Array
Methods
boolean
- boolean(val): void
Returns void
bytes
- bytes(val): void
Returns void
double
- double(val): void
Returns void
float
- float(val): void
Returns void
int
- int(val): void
Returns void
int128
- int128(val): void
Returns void
int256
- int256(val): void
Returns void
int53
- int53(val): void
Returns void
long
- long(val): void
Returns void
object
- object(obj): void
Returns void
raw
- raw(val): void
Returns void
result
- result(): Uint8Array
Returns Uint8Array
string
- string(val): void
Returns void
uint
- uint(val): void
Returns void
vector
- vector(fn, val, bare?): void
Parameters
- fn: ((item: unknown, bare?: boolean) => void)
- (item, bare?): void
Parameters
- item: unknown
Optional
bare: boolean
Returns void
- val: unknown[]
Optional
bare: boolean
Returns void
Static
manual
- manual(buffer, start?): TlBinaryWriter
Parameters
- buffer: number | ArrayBuffer
- start: number = 0
Static
serializeObject
- serializeObject(objectMap, obj, knownSize?): Uint8Array
Parameters
- objectMap: TlWriterMap
- obj: {
_: string;
} - knownSize: number = -1
Returns Uint8Array
Writer for TL objects.