Platform-specific functions used by TlBinaryReader and TlBinaryWriter

Implements

Constructors

Properties

base64Decode: ((string, url?) => Uint8Array)

Type declaration

    • (string, url?): Uint8Array
    • Parameters

      • string: string
      • url: boolean = false

      Returns Uint8Array

base64Encode: ((buf, url?) => string)

Type declaration

    • (buf, url?): string
    • Parameters

      • buf: Uint8Array
      • url: boolean = false

      Returns string

beforeExit: ((fn) => (() => void))

Type declaration

    • (fn): (() => void)
    • Parameters

      • fn: (() => void)
          • (): void
          • Returns void

      Returns (() => void)

        • (): void
        • Returns void

hexDecode: ((string) => Uint8Array)

Type declaration

    • (string): Uint8Array
    • Parameters

      • string: string

      Returns Uint8Array

hexEncode: ((buf) => string)

Type declaration

    • (buf): string
    • Parameters

      • buf: Uint8Array

      Returns string

log: {}

Type declaration

    utf8ByteLength: ((str) => number)

    Type declaration

      • (str): number
      • Parameters

        • str: string

        Returns number

    utf8Decode: ((buf) => string)

    Type declaration

      • (buf): string
      • Parameters

        • buf: Uint8Array

        Returns string

    utf8Encode: ((str) => Uint8Array)

    Type declaration

      • (str): Uint8Array
      • Parameters

        • str: string

        Returns Uint8Array

    Methods

    Generated using TypeDoc