public ByteBuffer buffer() {
        return this.buffer;
    }
Get the underlying buffer backing this record instance.

@return the buffer
clients/src/main/java/org/apache/kafka/common/record/LegacyRecord.java