X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2Fio%2FIOBufQueue.h;h=73046f52c85fac465a1363764d93eba83edcc0f4;hb=1ed040e7ee591753381c065ed8b48cbe6cd20e76;hp=cbc11376a993e731533c7c13e969963141079dbc;hpb=ba499baba3d1bddc044c9dd293ed053a8802c6b9;p=folly.git diff --git a/folly/io/IOBufQueue.h b/folly/io/IOBufQueue.h index cbc11376..73046f52 100644 --- a/folly/io/IOBufQueue.h +++ b/folly/io/IOBufQueue.h @@ -261,6 +261,11 @@ class IOBufQueue { */ void clear(); + /** + * Append the queue to a std::string. Non-destructive. + */ + void appendToString(std::string& out) const; + /** Movable */ IOBufQueue(IOBufQueue&&) noexcept; IOBufQueue& operator=(IOBufQueue&&);