private static int computeNextNonPackedOrdinal(DataTypeComponent resultDtc,
			List<DataTypeComponent> compList, int index) {
		int nextOrdinal = resultDtc.getOrdinal() + 1;
		if (index < (compList.size() - 1)) {
			DataTypeComponent nextDtc = compList.get(index + 1);
			int undefinedSpace =
				nextDtc.getOffset() - resultDtc.getOffset() - resultDtc.getLength();
			if (undefinedSpace > 0) {
				nextOrdinal += undefinedSpace;
			}
		}
		return nextOrdinal;
	}
Compute the next non-packed component ordinal based upon the newly minted result
component {@code resultDtc} and the offset of the next source component based upon
the specified source component list {@code compList} and the current component
index.
@param resultDtc newly minted result component
@param compList source component list
@param index index of current source component
@return next result component ordinal
Ghidra/Features/Base/src/main/java/ghidra/app/merge/datatypes/DataTypeMergeManager.java