private void adjustArray(int size) {
        if (size < MIN_SIZE) {
            size = MIN_SIZE;
        }

        byte[] newBytes = new byte[size];
        int len = Math.min(size,bytes.length);
        System.arraycopy(bytes,0,newBytes,0,len);
        bytes = newBytes;
    }
Adjusts the size of the array.
@param size The size to grow the array.
Ghidra/Framework/Generic/src/main/java/ghidra/util/datastruct/BooleanArray.java