Internal_The internal slot list storing serialization field property names.
The canonical string name of this class representation.
The underlying classification type (e.g. request, constructor, function).
A dynamic reference to the current subclass constructor. Enables late static binding for instance methods to access static helper operations.
The unique 32-bit integer identifier (CRC32 checksum) of this TL constructor.
The unique 32-bit integer identifier of the parent/abstract type this TL subclass represents.
StaticIDThe unique class ID identifier representing Vector (0x1cb5c415).
Deserializes a binary stream into this specific TLObject instance.
The BytesIO buffer stream containing the serialized TLObject.
Additional arguments passed down to the read parser.
A promise resolving to the parsed instance.
Formats the TLObject into a structured string.
A string starting with the constructor name followed by a pretty JSON payload.
Serializes the current class instance into a raw binary buffer.
Arguments passed down to the writer.
A Buffer containing the serialized representation of this object.
StaticreadReads, unpacks, and deserializes a strongly-typed boxed vector from a binary stream.
The BytesIO stream containing the serialized vector.
Optionaltl: anyAn optional custom type layer descriptor supplying a dedicated elements read method.
A promise resolving to an array of parsed elements.
This method first extracts the element count. If a specialized element parser (tl) is provided,
it uses it. Otherwise, it calculates the average element byte size dynamically using the remaining
buffer capacity and delegates bare item parsing to readBare.
StaticreadHelper deserializer reading a single "bare" item from a stream based on a calculated element byte size.
The BytesIO stream to read from.
The precalculated byte size of a single element.
A promise resolving to the parsed element.
StaticwriteSerializes an array of values into an MTProto-boxed vector Buffer.
The array of elements to serialize.
Optionaltl: anyAn optional custom type layer descriptor supplying a dedicated elements write method.
A Buffer containing the boxed vector bytes.
Serializer and deserializer for generic, strongly-typed vectors (arrays) of MTProto objects.
Remarks
In MTProto, vectors can be either "boxed" (serialized with the explicit
Vector.IDclass tag prefix) or "bare" (serialized directly as an array of items without the leading class ID). This class supports both boxed serialization/deserialization and bare item parsers.