@Override
    public boolean hasMagic(byte magic) {
        return magic >= MAGIC_VALUE_V2;
    }
Write the record to `out` and return its size.
clients/src/main/java/org/apache/kafka/common/record/DefaultRecord.java