private void checkRecordLength() {
		// inadvertently checks for < 0 because array size must be positive
		if (getRecordLength() != data.length) {
			throw new IllegalArgumentException("recordLength != data.length");
		}
		if (getRecordLength() > MAX_RECORD_LENGTH) {
			throw new IllegalArgumentException("recordLength > " + MAX_RECORD_LENGTH);
		}
	}
Only use this constructor when writing...it computes the checksum for you (cheating)!
@param recordLength
@param loadOffset
@param recordType
@param data
Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/IntelHexRecord.java