private int[] getStartIndexesForAllAddressRanges() {
		int[] starts = new int[ranges.size() + 1];

		starts[0] = 0;
		int i = 1;
		for (AddressRange range : ranges) {
			starts[i] = starts[i - 1] + (int) range.getLength();
			i++;
		}
		return starts;
	}
Compute the index for each range in the address set.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/address/AddressSetMapping.java