Add convenience functions to serialize to / deserialize from string
[folly.git] / folly / io / IOBufQueue.h
index cbc11376a993e731533c7c13e969963141079dbc..73046f52c85fac465a1363764d93eba83edcc0f4 100644 (file)
@@ -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&&);