private static int checksum(int recordLength, int loadOffset, int recordType, byte[] data) {
		int accum = 0;
		accum += recordLength & 0xff;
		accum += loadOffset & 0xff;
		accum += (loadOffset >> 8) & 0xff;
		accum += recordType & 0xff;
		for (int ii = 0; ii < data.length; ++ii) {
			final int t = data[ii] & 0xff;
			accum += t;
		}
		final int lowest = accum & 0xff;
		final int chk = (0x100 - lowest) & 0xff;
		return chk;
	}
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