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 code
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type int
The type code
final

Methods

doRead(MsgPackReader reader) → dynamic
Reads the serialized representation of an object
doWrite(MsgPackWriter writer, dynamic object) bool
Writes the object to the provided MsgPackWriter writer
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 the object as a extension.

Operators

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