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

decodeMessage<T> function

*<Null safety>*

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

Decodes a FIDL message that contains a single parameter.

Implementation

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