public void append(LegacyRecord record) {
        appendWithOffset(nextSequentialOffset(), record);
    }
Append the record at the next consecutive offset. If no records have been appended yet, use the base
offset of this builder.
@param record The record to add
clients/src/main/java/org/apache/kafka/common/record/MemoryRecordsBuilder.java