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

decodeMessage<T> function

*<Null safety>*

T decodeMessage <T>(Message message, int inlineSize, MemberType typ)

Decodes a FIDL message that contains a single parameter.

Implementation

T decodeMessage<T>(Message message, int inlineSize, MemberType typ) {
  final Decoder decoder = Decoder(message)
    ..claimMemory(kMessageHeaderSize + inlineSize);
  T decoded = typ.decode(decoder, kMessageHeaderSize);
  decoder.claimMemoryComplete();
  _validateDecoding(decoder);
  return decoded;
}