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

decode method

  • @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>(numHandles);
  for (var i = 0; i < numHandles; i++) {
    handles[i] = decoder.claimHandle();
  }
  return UnknownRawData(data, handles);
}