static boolean hasEnoughUndefined1sAtOffset(Structure structure, int offset, int length,
			TaskMonitor monitor) throws CancelledException {

		if (structure.getLength() < offset + length) {
			return false;
		}

		for (int i = offset; i < offset + length; i++) {
			monitor.checkCancelled();
			DataTypeComponent component = structure.getComponentAt(i);
			if (component == null) {
				return false;
			}
			DataType dataType = component.getDataType();
			if (dataType == DataType.DEFAULT) {
				continue;
			}
			return false;
		}
		return true;
	}
Method to determine if there are at least the given length of undefined size 1 components at the given offset in the given structure
@param structure the given structure
@param offset the given offset
@param length the length of undefine size 1 components to check for starting at given offset
@param monitor task monitor
@return true if there are at least length undefined size 1 components at the given offset in the given structure
@throws CancelledException if cancelled
Ghidra/Features/Decompiler/ghidra_scripts/classrecovery/EditStructureUtils.java