Transformer for converting raw bytes into Packet objects. Handles the low-level parsing of network traffic, or any other byte stream for that matter, stores them in a buffer and encapsulates them in Packet objects which the Connection then re-casts and injects into the appropriate steam - for instance event stream.

Can also be used standalone for parsing, for instance, packet dumps.

Implements
  • StreamTransformer<List<int>, Packet>

Constructors

PacketTransformer()

Properties

bodyBuffer → List<int>

read / write
hashCode → int

Get a hash code for this object.

read-only, inherited
headerBuffer → List<int>

read / write
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

bind(Stream<List<int>> stream) → Stream<Packet>

Transform the incoming stream's events.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited