private void growArray() {
    	int len = longs.length;
    	if (len == 0) {
    		longs = new long[4];
    		return;
    	}
		long [] newlongs = new long[len*2];
        System.arraycopy(longs,0,newlongs,0,len);
        longs = newlongs;
    }
Doubles the size of the array.
@param size The new capacity of the array.
Ghidra/Framework/Generic/src/main/java/ghidra/util/datastruct/LongArrayList.java