stash_msgpack library
Stash msgpack codec implementation.
Classes
- DateTimeExtension
- Datetime extension for msgpack
- MsgpackCodec
- Msgpack binary codec implementation
- MsgPackExtension
- 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
- MsgPackReader
- Implements a msgpack deserializer over a base BytesReader
- MsgPackWriter
- Implements a msgpack serializer over the base BytesWriter.
Enums
- MsgPackReaderMode
- The reader mode
Constants
- array16 → const int
- array 16
- array32 → const int
- array 32
- bin16 → const int
- bin 16
- bin32 → const int
- bin 32
- bin8 → const int
- bin 8
- boolFalse → const int
- false
- boolTrue → const int
- true
- ext16 → const int
- ext 16
- ext32 → const int
- ext 32
- ext8 → const int
- ext 8
- fixext1 → const int
- fixext 1
- fixext16 → const int
- fixext 16
- fixext2 → const int
- fixext 2
- fixext4 → const int
- fixext 4
- fixext8 → const int
- fixext 8
- float32 → const int
- float 32
- float64 → const int
- float 64
- int16 → const int
- int16
- int32 → const int
- int 32
- int64 → const int
- int 64
- int8 → const int
- int 8
- map16 → const int
- map 16
- map32 → const int
- map 32
- nil → const int
- nil format
- str16 → const int
- str 16
- str32 → const int
- str 32
- str8 → const int
- str 8
- uin16 → const int
- uint 16
- uin32 → const int
- uint 32
- uin64 → const int
- uint64
- uint8 → const int
- uint 8
Functions
-
msgPackRead(
Uint8List bytes, {dynamic fromEncodable(dynamic)?, List< MsgPackExtension> ? extensions}) → dynamic - Shortcut function to read a object from a Uint8List buffer
-
msgPackWrite(
dynamic value, {Map< String, dynamic> toEncodable(dynamic)?, List<MsgPackExtension> ? extensions}) → Uint8List - Shortcut function to write a object to a Uint8List buffer
Exceptions / Errors
- MsgPackCyclicError
- Reports that an object could not be serialized due to cyclic references.
- MsgPackOverflowError
- Reports that an Object could not be serialized due to overflow error.
- MsgPackUnsupportedObjectError
- Error thrown by MessagePack serialization if an object cannot be serialized.
- MsgPackUnsupportedTypeError
- Error thrown by MessagePack serialization if an object cannot be deserialized.