Documentation - v0.27.1
    Preparing search index...

    Writer for TL objects.

    Index

    Constructors

    Properties

    dataView: DataView
    objectMap: TlWriterMap | undefined

    Writers map

    pos: number

    Current position in the buffer.

    uint8View: Uint8Array

    Methods

    • Parameters

      • fn: (item: unknown, bare?: boolean) => void
      • val: unknown[]
      • Optionalbare: boolean

      Returns void

    • Serialize a single object

      Parameters

      • objectMap: TlWriterMap

        Writers map

      • obj: { _: string }

        Object to serialize

      • knownSize: number = -1

        In case the size is known, pass it here

      Returns Uint8Array