encodeMessageWithCallback function

*<Null safety>*

void encodeMessageWithCallback (Encoder encoder, int inlineSize, dynamic f())

Implementation

void encodeMessageWithCallback(Encoder encoder, int inlineSize, Function() f) {
  encoder.alloc(inlineSize);
  f();
  encoder.allocComplete();
  _validateEncoding(encoder);
}