docs: public CharBuffer asCharBuffer()
      {
          int n = getIndexCount();
          if (getIndexSize() != 2)
          {
              throw new UnsupportedOperationException("Cannot convert integer indices to char array");
          }
          if (n <= 0)
          {
              return null;
          }
          CharBuffer data = ByteBuffer.allocateDirect(2 * n).order(ByteOrder.nativeOrder()).asCharBuffer();
          if (!NativeIndexBuffer.getShortVec(getNative(), data))
          {
              throw new IllegalArgumentException("Cannot convert integer indices to char buffer of size " + n);
          }
          return data;
      }