add function to push data from another cursor
authorGuohui Wang <ghwang@fb.com>
Fri, 29 Aug 2014 01:32:59 +0000 (18:32 -0700)
committerAnton Likhtarov <alikhtarov@fb.com>
Fri, 26 Sep 2014 22:19:46 +0000 (15:19 -0700)
commitcbfe1b0cae5a8f2efc7ddd03c5e120735e49d464
treec2ceb28f8a9ebd96a525359429760af7d544dfe9
parentdf0b3c979d1596f4e6611c6613adafc468997d77
add function to push data from another cursor

Summary:
Add a function to Writable to push data from another cursor. Data in the input
cursor could be in a buffer chain.

Added test in IOBufCurosTest.cpp to test the new function.

Test Plan: fbmake runtests;

Reviewed By: simpkins@fb.com

Subscribers: njormrod, net-systems@

FB internal diff: D1563209

Tasks: 4886058

Blame Revision:
folly/io/Cursor.h
folly/io/test/IOBufCursorTest.cpp