private void adjustArray(int size) {
        if (size < MIN_SIZE) {
            size = MIN_SIZE;
        }
        float[] newfloats = new float[size];
        int len = Math.min(size,floats.length);
        System.arraycopy(floats,0,newfloats,0,len);
        floats = newfloats;
    }
Adjusts the size of the array.
@param size The new capacity of the array.
Ghidra/Framework/Generic/src/main/java/ghidra/util/datastruct/FloatArray.java