Reader for TL objects.

Constructors

Properties

dataView: DataView
objectsMap: undefined | TlReaderMap

Readers map

pos: number = 0
uint8View: Uint8Array
platform: ITlPlatform

Methods

  • Advance the reader cursor by the given amount of bytes

    Parameters

    • delta: number

      Amount of bytes to advance (can be negative)

    Returns void

  • Parameters

    • reader: ((id?: number) => unknown) = ...
        • (id?): unknown
        • Parameters

          • Optionalid: number

          Returns unknown

    • bare: boolean = false

    Returns unknown[]

  • Deserialize a single object

    Type Parameters

    • T

    Parameters

    • objectsMap: TlReaderMap

      Readers map

    • data: Uint8Array

      Buffer to read from

    • start: number = 0

      Position to start reading from

    Returns T