private int allocSpace(int size) {
        if (size > ints.length - nextFree) {
            adjustSpace(2*(totalSpaceAllocated+size));
        }
        int ret = nextFree;
        nextFree += size;
        totalSpaceAllocated += size;
        return ret;
    }
Allocates space for storing the array
@param size number of elements to allocate space for
@return Returns the start position in the buffer for the
storage for the array
Ghidra/Framework/Generic/src/main/java/ghidra/util/datastruct/IntArrayArray.java