Platform-specific functions used by TlBinaryReader and TlBinaryWriter

interface ITlPlatform {
    base64Decode: ((str: string, url?: boolean) => Uint8Array);
    base64Encode: ((buf: Uint8Array, url?: boolean) => string);
    hexDecode: ((str: string) => Uint8Array);
    hexEncode: ((buf: Uint8Array) => string);
    utf8ByteLength: ((str: string) => number);
    utf8Decode: ((buf: Uint8Array) => string);
    utf8Encode: ((str: string) => Uint8Array);
}

Hierarchy (view full)

Properties

base64Decode: ((str: string, url?: boolean) => Uint8Array)
base64Encode: ((buf: Uint8Array, url?: boolean) => string)
hexDecode: ((str: string) => Uint8Array)
hexEncode: ((buf: Uint8Array) => string)
utf8ByteLength: ((str: string) => number)
utf8Decode: ((buf: Uint8Array) => string)
utf8Encode: ((str: string) => Uint8Array)