code: public static int[] adjust(IGrowArray gwork, int desired) {
          if (gwork == null) gwork = new IGrowArray();
          gwork.reshape(desired);
          return gwork.data;
      }
docs: Resizes the array to ensure that it is at least of length desired and returns its internal array