docs: public void set(int i, U value) {
      ensureCapacity((i + 1) * unitSize);
      ByteBuffer view = getView(i);
      try {
        factory.write(view, value);
      } catch (IOException e) {
        throw new RuntimeException(e);
      }
    }