private DataTypeComponentDB generateUndefinedComponent(int offset, int missingComponentIndex) {
		if (missingComponentIndex >= 0) {
			throw new AssertException();
		}
		missingComponentIndex = -missingComponentIndex - 1;
		int ordinal = offset;
		if (missingComponentIndex > 0) {
			// compute ordinal from previous defined component
			DataTypeComponent dtc = components.get(missingComponentIndex - 1);
			ordinal = dtc.getOrdinal() + offset - dtc.getEndOffset();
			if (dtc.getLength() == 0) {
				ordinal += 1;
			}
		}
		return new DataTypeComponentDB(dataMgr, this, ordinal, offset);
	}
Generate an undefined component following a binary search across the defined components.
@param offset the offset within this structure which was searched for
@param missingComponentIndex the defined component binary search index result (must be
negative)
@return undefined component
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/data/StructureDB.java