public void growCapacity(int newCapacity) {

        if (newCapacity <= capacity) {
            return;
        }
        int []temp = new int[newCapacity];
        System.arraycopy(links, 0, temp, 0, capacity);
        for (int i=capacity; i<newCapacity; i++) {
			temp[i] = i + 1;
        }
        temp[newCapacity-1] = END_OF_LIST;
        freePtr=capacity;
        capacity = newCapacity;
        links = temp;
	}
Increases the index resource pool.
@param newCapacity the new number of resource indexes to manage.  if this number
is smaller than the current number of resource indexes, then nothing changes.
Ghidra/Framework/Generic/src/main/java/ghidra/util/datastruct/IntListIndexer.java