code: protected void ensureCapacity() {
          if(_buffer.remaining() < 8) {
              ByteBuffer b = ByteBuffer.allocate(_buffer.capacity() << 1);
              _buffer.flip();
              b.put(_buffer);
              _buffer = b;
          }
      }
docs: Ensure that the internal backing buffer has enough capacity for a new pair of index and offset.