public void appendWithOffset(long offset, SimpleRecord record) {
        appendWithOffset(offset, record.timestamp(), record.key(), record.value(), record.headers());
    }
Append a new record at the given offset.
@param offset The absolute offset of the record in the log buffer
@param record The record to append
clients/src/main/java/org/apache/kafka/common/record/MemoryRecordsBuilder.java