add IOBuf::appendToIov()
Summary: This splits out some code from the existing getIov() method, to support appending to an existing iovec array, rather than always returning a new one. I have a use case where I have multiple IOBuf chains to write at once, preceded by some header data. appendToIov() makes it easier to populate a single iovec array with this data, and then perform a single writev() call. Test Plan: Updated the unit tests to exercise appendToIov() Reviewed By: jasmeetbagga@fb.com Subscribers: trunkagent, doug, exa, net-systems@, folly-diffs@ FB internal diff: D1783090 Tasks: Signature: t1:1783090:1421450476:d5c89d6e1adbd2f2239057238e020b302df09f23 Blame Revision:
Showing
Please register or sign in to comment