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

decode method

T decode (Decoder decoder, int base, int depth)

Implementation

T decode(Decoder decoder, int base, int depth) {
  switch (decoder.wireFormat) {
    case WireFormat.v1:
      return type.decode(decoder, base + offsetV1, depth);
    case WireFormat.v2:
      return type.decode(decoder, base + offsetV2, depth);
    default:
      throw FidlError('unknown wire format');
  }
}