decodeObject function

Object? decodeObject(
  1. Pointer<Uint8> buffer,
  2. int length
)

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;
}