base64Decode
base64Decode: ((str: string, url?: boolean) => Uint8Array)
base64Encode
base64Encode: ((buf: Uint8Array, url?: boolean) => string)
beforeExit
beforeExit: ((fn: (() => void)) => (() => void))
getDefaultLogLevel
getDefaultLogLevel: (() => null | number)
getDeviceModel
getDeviceModel: (() => string)
hexDecode
hexDecode: ((str: string) => Uint8Array)
hexEncode
hexEncode: ((buf: Uint8Array) => string)
Optional
isOnline
isOnline?: (() => boolean)
log
log: ((color: number, level: number, tag: string, fmt: string, args: unknown[]) => void)
Optional
onNetworkChanged
onNetworkChanged?: ((fn: ((connected: boolean) => void)) => (() => void))
utf8ByteLength
utf8ByteLength: ((str: string) => number)
utf8Decode
utf8Decode: ((buf: Uint8Array) => string)
utf8Encode
utf8Encode: ((str: string) => Uint8Array)
Platform-specific functions used by TlBinaryReader and TlBinaryWriter