Google is committed to advancing racial equity for Black communities. See how.

decode method

*<Null safety>*
  • @override

UnknownRawData decode (Decoder decoder, int offset) override

Implementation

@override
UnknownRawData decode(Decoder decoder, int offset) {
  final Uint8List data = Uint8List(numBytes);
  for (var i = 0; i < numBytes; i++) {
    data[i] = decoder.decodeUint8(offset + i);
  }
  final handles =
      List<Handle>.generate(numHandles, (int i) => decoder.claimHandle());
  return UnknownRawData(data, handles);
}