public boolean equals(Object other) {
        if (this == other)
            return true;
        if (other == null)
            return false;
        if (!other.getClass().equals(LegacyRecord.class))
            return false;
        LegacyRecord record = (LegacyRecord) other;
        return this.buffer.equals(record.buffer);
    }
Get the underlying buffer backing this record instance.

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