MessageCodec<T> class abstract

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.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited