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

encodeMessageHeader method

*<Null safety>*

void encodeMessageHeader (int ordinal, int txid)

Implementation

void encodeMessageHeader(int ordinal, int txid) {
  alloc(kMessageHeaderSize);
  encodeUint32(txid, kMessageTxidOffset);
  encodeUint8(_kUnionAsXUnionFlag, kMessageFlagOffset);
  encodeUint8(0, kMessageFlagOffset + 1);
  encodeUint8(0, kMessageFlagOffset + 2);
  encodeUint8(kMagicNumberInitial, kMessageMagicOffset);
  encodeUint64(ordinal, kMessageOrdinalOffset);
}