code: protected void put(ByteBuffer bb) {
         if(_buffer.remaining() < bb.remaining()) {
             int newCapacity = Math.max(_buffer.capacity() << 1, _buffer.position() + bb.remaining());
             ByteBuffer b = ByteBuffer.allocate(newCapacity);
             _buffer.flip();
             b.put(_buffer);
             _buffer = b;
         }
         
         _buffer.put(bb);
      }
docs: Bulk-put via {@link ByteBuffer}.