msgPackRead function
dynamic
msgPackRead(
- Uint8List bytes, {
- dynamic fromEncodable(
- dynamic
- List<
MsgPackExtension> ? extensions,
Shortcut function to read a object from a Uint8List buffer
bytes
: The Uint8List byte buffer to read fromfromEncodable
: A custom function the converts the deserializedMap<String, dynamic>
representation of the object into the objectextensions
: A optional list of extensions to use
Returns the underlying object after successful deserialization
Implementation
dynamic msgPackRead(Uint8List bytes,
{dynamic Function(dynamic)? fromEncodable,
List<MsgPackExtension>? extensions}) {
final reader = MsgPackReader(bytes,
fromEncodable: fromEncodable, extensions: extensions);
return reader.read();
}