private void adjustSpace(int newSize) {
        if (newSize < 10) {
            newSize = 10;
        }
        byte[] newBytes = new byte[newSize];
        int pos = 1;
        for(int i=0;i<starts.length;i++) {
            if (starts[i] > 0) {
            	int len = lengths[i] & 0xFFFF;
                System.arraycopy(bytes,starts[i],newBytes,pos,len);
                starts[i] = pos;
                pos += len;
            }
        }
        nextFree = pos;
        bytes = newBytes;
    }
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/StringArray.java