public void appendSnapshotHeaderMessage(long timestamp, SnapshotHeaderRecord snapshotHeaderRecord) {
        appendControlRecord(
            timestamp,
            ControlRecordType.SNAPSHOT_HEADER,
            MessageUtil.toByteBuffer(snapshotHeaderRecord, ControlRecordUtils.SNAPSHOT_HEADER_CURRENT_VERSION)
        );
    }
Append a control record at the next sequential offset.

@param timestamp The record timestamp
@param type The control record type (cannot be UNKNOWN)
@param value The control record value
clients/src/main/java/org/apache/kafka/common/record/MemoryRecordsBuilder.java