public long computeChecksum() {
        return crc32(buffer, MAGIC_OFFSET, buffer.limit() - MAGIC_OFFSET);
    }
Compute the checksum of the record from the record contents
clients/src/main/java/org/apache/kafka/common/record/LegacyRecord.java