msgpack_annotation library

Classes

DataWriter
Deserializer
ExtDecoder
ExtEncoder
Float
MsgPackSerializable
Annotate a class with @MsgPackSerializable to generate serialization code.
Serializer

Functions

decodeList<T>(Deserializer deserializer, T itemDecoder(Deserializer)) List<T>
Decodes a list from the MessagePack format. This function is helper for the MsgPack serializable builder.
decodeMap<K, V>(Deserializer deserializer, K keyDecoder(Deserializer), V valueDecoder(Deserializer)) Map<K, V>
Decodes a map from the MessagePack format. This function is helper for the MsgPack serializable builder.
decodeSet<T>(Deserializer deserializer, T itemDecoder(Deserializer)) Set<T>
Decodes a set from the MessagePack format. This function is helper for the MsgPack serializable builder.
deserialize(Uint8List list, {ExtDecoder? extDecoder, bool copyBinaryData = false}) → dynamic
encodeList(Serializer serializer, List list, void itemEncoder(Serializer, dynamic)) → void
Encodes a list to the MessagePack format. This function is helper for the MsgPack serializable builder.
encodeMap(Serializer serializer, Map map, void keyEncoder(Serializer, dynamic), void valueEncoder(Serializer, dynamic)) → void
Encodes a map to the MessagePack format. This function is helper for the MsgPack serializable builder.
encodeSet(Serializer serializer, Set set, void itemEncoder(Serializer, dynamic)) → void
Encodes a set to the MessagePack format. This function is helper for the MsgPack serializable builder.
serialize(dynamic value, {ExtEncoder? extEncoder}) Uint8List

Exceptions / Errors

FormatError