stash_msgpack library Null safety

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. [...]

Constants

array16 → const int
array 16
0xdc
array32 → const int
array 32
0xdd
bin8 → const int
bin 8
0xc4
bin16 → const int
bin 16
0xc5
bin32 → const int
bin 32
0xc6
boolFalse → const int
false
0xc2
boolTrue → const int
true
0xc3
ext8 → const int
ext 8
0xc7
ext16 → const int
ext 16
0xc8
ext32 → const int
ext 32
0xc9
fixext1 → const int
fixext 1
0xd4
fixext2 → const int
fixext 2
0xd5
fixext4 → const int
fixext 4
0xd6
fixext8 → const int
fixext 8
0xd7
fixext16 → const int
fixext 16
0xd8
float32 → const int
float 32
0xca
float64 → const int
float 64
0xcb
int8 → const int
int 8
0xd0
int16 → const int
int16
0xd1
int32 → const int
int 32
0xd2
int64 → const int
int 64
0xd3
map16 → const int
map 16
0xde
map32 → const int
map 32
0xdf
nil → const int
nil format
0xc0
str8 → const int
str 8
0xd9
str16 → const int
str 16
0xda
str32 → const int
str 32
0xdb
uin16 → const int
uint 16
0xcd
uin32 → const int
uint 32
0xce
uin64 → const int
uint64
0xcf
uint8 → const int
uint 8
0xcc

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. [...]