private void adjustSpace(int newSize) {
        if (newSize < 10) {
            newSize = 10;
        }
        long[] newLongs = new long[newSize];
        int pos = 1;
        for(int i=0;i<starts.length;i++) {
            if (starts[i] > 0) {
                System.arraycopy(longs,starts[i],newLongs,pos,lengths[i]);
                starts[i] = pos;
                pos += lengths[i];
            }
        }
        nextFree = pos;
        longs = newLongs;
    }
Adjusts the buffer size as the storage requirements change.
Every time the buffer is resized, arrays are compacted.
@param newSize the new size to adjust the buffer to
Ghidra/Framework/Generic/src/main/java/ghidra/util/datastruct/LongArrayArray.java