Counter of the required number of bytes to encode a given object.
Used as a pre-pass before using TlBinaryWriter to avoid unnecessary allocations.
Writers map
Readonly
Static
Count overhead in bytes for the given number of bytes when encoded as bytes TL type.
bytes
Number of bytes
Count bytes required to serialize the given object.
Object to count bytes for
Counter of the required number of bytes to encode a given object.
Used as a pre-pass before using TlBinaryWriter to avoid unnecessary allocations.