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

encodeMessage<T> function

*<Null safety>*

void encodeMessage <T>(Encoder encoder, int inlineSize, MemberType typ, T value)

Encodes a FIDL message that contains a single parameter.

Implementation

void encodeMessage<T>(
    Encoder encoder, int inlineSize, MemberType typ, T value) {
  encoder.alloc(inlineSize);
  typ.encode(encoder, value, kMessageHeaderSize);
  encoder.allocComplete();
  _validateEncoding(encoder);
}