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, 0);
  typ.encode(encoder, value, kMessageHeaderSize, 1);
}