docs: public void setShortVec(CharBuffer data)
      {
          if (data == null)
          {
              throw new IllegalArgumentException("Input data for indices cannot be null");
          }
          if (getIndexSize() != 2)
          {
              throw new UnsupportedOperationException("Cannot update integer indices with char array");
          }
          if (data.isDirect())
          {
              if (!NativeIndexBuffer.setShortVec(getNative(), data))
              {
                  throw new UnsupportedOperationException("Input buffer is wrong size");
              }
          }
          else if (data.hasArray())
          {
              if (!NativeIndexBuffer.setShortArray(getNative(), data.array()))
              {
                  throw new UnsupportedOperationException("Input buffer is wrong size");
              }
          }
          else
          {
              throw new UnsupportedOperationException(
                      "CharBuffer type not supported. Must be direct or have backing array");
          }
      }