decodeMessage<T> function

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) {
  return decodeMessageWithCallback(message, inlineSize, (Decoder decoder) {
    return typ.decode(decoder, kMessageHeaderSize, 1);
  });
}