public byte magic() {
        return buffer.get(MAGIC_OFFSET);
    }
The magic value (i.e. message format version) of this record
@return the magic value
clients/src/main/java/org/apache/kafka/common/record/LegacyRecord.java