Add QueueAppender
authorTudor Bosman <tudorb@fb.com>
Tue, 21 May 2013 17:59:39 +0000 (10:59 -0700)
committerOwen Yamauchi <oyamauchi@fb.com>
Mon, 3 Jun 2013 19:20:53 +0000 (12:20 -0700)
commit2ba26b052ea53cfa4126981de54677c2af623f66
treea44550ad2ff998263a5bebbc8d7844d15e1ef2a8
parent0781f3a8c93e03641f9b27eb948763930aef0e3f
Add QueueAppender

Summary:
Add an Appender that appends to a IOBufQueue.  You can pass in the maximum
append size if you know it, and it will throw on overflow, and will never
allocate IOBufs larger than the remaining size.

Test Plan: test added

Reviewed By: davejwatson@fb.com

FB internal diff: D820160
folly/io/Cursor.h
folly/io/IOBuf.cpp
folly/io/IOBuf.h
folly/io/IOBufQueue.cpp
folly/io/IOBufQueue.h
folly/io/test/IOBufCursorTest.cpp