folly AsyncPipeReader supports IOBuf
authorYuri Putivsky <yuri@fb.com>
Wed, 3 Aug 2016 19:02:26 +0000 (12:02 -0700)
committerFacebook Github Bot 0 <facebook-github-bot-0-bot@fb.com>
Wed, 3 Aug 2016 19:08:46 +0000 (12:08 -0700)
commit2bee060d49f2a26a4d7f345ab6c682f43a2b4a0a
tree0e019af9878990eb2abbb77bef198f2ec500fbff
parent832479bd63a69702d47901cac94c290a47b2acf8
folly AsyncPipeReader supports IOBuf

Summary: folly AsyncPipeReader takes a callback of type AsyncReader::ReadCallback. Now AsyncReader::ReadCallback class supports IOBuf as a buffer for transfer read bytes. Need to extend AsyncPipeReader class to support IOBuf as well

Reviewed By: yfeldblum

Differential Revision: D3650893

fbshipit-source-id: e2142341c8b8b0b2ef248c1f13a8caba9d50ba67
folly/io/async/AsyncPipe.cpp
folly/io/async/AsyncTransport.h
folly/io/async/test/AsyncPipeTest.cpp