applyToBuffer method

  1. @override
void applyToBuffer(
  1. PgByteDataWriter buffer
)
override

Implementation

@override
void applyToBuffer(PgByteDataWriter buffer) {
  buffer.writeUint8(ReplicationMessageId.standbyStatusUpdate);
  buffer.writeUint64(walWritePosition.value);
  buffer.writeUint64(walFlushPosition.value);
  buffer.writeUint64(walApplyPosition.value);
  buffer.writeUint64(dateTimeToMicrosecondsSinceY2k(clientTime));
  buffer.writeUint8(mustReply ? 1 : 0);
}