msgpack library

Classes

ArrayType
BinaryType
ExtensionFormat
ExtTimeStamp
This class implements the Timestamp extension type as defined in the MsgPack spec. Due to the precision implemented in the Dart language, we only encode using the 64 or 96 bit encodings (and not the 32 bit). However we can decode from all formats specified in the spec.
ExtType
Float
FloatType
IntType
MapType
Message
MsgType
StringCache
A Cache for Common Strings
StringType
Uint8Decoder
This class manages the backing buffer and ByteData of the provided Uint8List and provides methods to unpack the Message Pack data.
Uint8Encoder
This class manages backing buffers and provides methods to pack data in the contents.

Constants

defaultBufferSize → const int
const int.fromEnvironment("msgpack.packer.defaultBufferSize", defaultValue: 2048)

Functions

deserialize(dynamic input) → dynamic
This is a convenience function that will try to deserialize a list of bytes in MsgPack format. If the provided input value is a TypedData, then it will generate a new Uint8List based on the buffer of the provided typeddata. If the input is a List then it will create a copy of the data rather than reusing the underlying buffer.
pack(dynamic value) → Uint8List
registerExtension<T extends ExtensionFormat>(T obj) → void
Register a type for the ExtensionFormat. Type T must implement the ExtensionFormat class [...]
serialize(dynamic value) → Uint8List
This is a convenience function to pack a value to MsgPack Uint8List. It will handle creating the serializer, initializing the state and returning the properly allocated list. It will reuse an existing instance of the serializer if one exists in order to limit memory usage.
unpack(dynamic input) → dynamic