MessageCodec<T> class

A message encoding/decoding mechanism.

Both operations throw an exception, if conversion fails. Such situations should be treated as programming errors.

See also:

Implementers

Constructors

MessageCodec()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

decodeMessage(ByteData message) → T
Decodes the specified message from binary. [...]
encodeMessage(T message) ByteData
Encodes the specified message in binary. [...]
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

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited