decodeObject function
Implementation
Object? decodeObject(Pointer<Uint8> buffer, int length) {
var dataList = buffer.cast<Uint8>().asTypedList(length);
if (dataList.isNotEmpty) {
return const StandardMessageCodec()
.decodeMessage(dataList.buffer.asByteData());
}
return null;
}