MsgPackExtension class abstract
Base definition of a extension. It's purpose is to support custom objects directly without them needing to provide a method to serialize/deserialize to/from a Map. This mechanism is mostly target to some base types of the Dart language
- Implementers
Constructors
- MsgPackExtension(int type)
-
Builds MsgPackExtension with the specified
type
codeconst
Properties
Methods
-
doRead(
MsgPackReader reader) → dynamic - Reads the serialized representation of an object
-
doWrite(
MsgPackWriter writer, dynamic object) → bool -
Writes the
object
to the provided MsgPackWriterwriter
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
int targetType, Uint8List bytes) → dynamic -
Tries to read
targetType
code using the current extension -
toString(
) → String -
A string representation of this object.
inherited
-
write(
MsgPackWriter writer, dynamic object) → bool -
Appends to a MsgPackWriter provided
writer
theobject
as a extension.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited