Platform-specific functions used by TlBinaryReader and TlBinaryWriter

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

Hierarchy

  • ITlPlatform

    Methods

    • Parameters

      • str: string
      • Optional url: boolean

      Returns Uint8Array

    • Parameters

      • buf: Uint8Array
      • Optional url: boolean

      Returns string

    • Parameters

      • str: string

      Returns Uint8Array

    • Parameters

      • buf: Uint8Array

      Returns string

    • Parameters

      • str: string

      Returns number

    • Parameters

      • buf: Uint8Array

      Returns string

    • Parameters

      • str: string

      Returns Uint8Array

    Generated using TypeDoc