code: public void setIntVec(int[] data)
      {
          if (data == null)
          {
              throw new IllegalArgumentException("Input data for indices cannot be null");
          }
          if (getIndexSize() != 4)
          {
              throw new UnsupportedOperationException("Cannot update short indices with int array");
          }
          if (!NativeIndexBuffer.setIntArray(getNative(), data))
          {
              throw new UnsupportedOperationException("Input array is wrong size");
          }
      }
docs: Updates the indices in the index buffer from a Java int array.
  All of the entries of the input int array are copied into
  the storage for the index buffer. The new indices must be the
  same size as the old indices - the index buffer size cannot be changed.
  @param data char array containing the new values
  @throws IllegalArgumentException if int array is wrong size