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

decode method

  • @override

T decode (Decoder decoder, int offset) override

Implementation

@override
T decode(Decoder decoder, int offset) {
  final int count = decoder.decodeUint64(offset);
  final int data = decoder.decodeUint64(offset + 8);
  validateEncoded(count, data);
  if (data == kAllocAbsent) {
    return null;
  }
  final int base =
      decoder.claimMemory(count * element.decodingInlineSize(decoder));
  return element.decodeArray(decoder, count, base);
}