public int valueSize() {
        return buffer.getInt(valueSizeOffset());
    }
The length of the value in bytes
@return the size in bytes of the value (0 if the value is null)
clients/src/main/java/org/apache/kafka/common/record/LegacyRecord.java