read method
Tries to read targetType
code using the current extension
targetType
: The type code to readbytes
: The byte buffer to use to read the object
Returns null if the targetType
is not supported by this extension
Implementation
dynamic read(int targetType, Uint8List bytes) {
if (targetType == type) {
return doRead(MsgPackReader(bytes));
}
return null;
}