code: public void add(int index, int offset) {
          ensureCapacity();
          _buffer.putInt(index);
          _buffer.putInt(offset);
      }
docs: Adds a pair of index and offset to this SegmentIndexBuffer.
  
  @param index  - the array index
  @param offset - the segment offset