Documentation - v0.27.1
    Preparing search index...

    Class TlSerializationCounter

    Counter of the required number of bytes to encode a given object.

    Used as a pre-pass before using TlBinaryWriter to avoid unnecessary allocations.

    Index

    Constructors

    Properties

    count: number = 0
    objectMap: TlWriterMap

    Writers map

    Methods

    • Count overhead in bytes for the given number of bytes when encoded as bytes TL type.

      Parameters

      • size: number

        Number of bytes

      Returns number