@Override
    public String toString() {
        return "MemoryRecords(size=" + sizeInBytes() +
                ", buffer=" + buffer +
                ")";
    }
Get the byte buffer that backs this instance for reading.
clients/src/main/java/org/apache/kafka/common/record/MemoryRecords.java