AbridgedPacketCodec class
Packet codec for the TCP Abridged transport mode.
The initial tag byte 0xEF is sent after connecting. Packet lengths are encoded in units of 4 bytes (since all TL payloads are 4-byte aligned):
- If length/4 < 127: a single byte holds the value.
- Otherwise: 0x7F followed by 3 little-endian bytes for length/4.
- Inheritance
-
- Object
- PacketCodec
- AbridgedPacketCodec
Constructors
Properties
Methods
-
encodePacket(
Uint8List data) → Uint8List -
Wraps
datainto a transport-level packet.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readPacket(
BufferedReader reader) → Future< Uint8List> -
Reads and decodes one complete packet from the
readerbuffer.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited