r1166@dev030 (orig r58681): dreiss | 2007-09-06 18:26:30 -0700
commit21ddb8350ff2d40eff9be14b5b9231b41bb54b7d
author(no author) <(no author)@41a61cd8-c433-0410-bb1c-e256eeef9e11>
Fri, 7 Sep 2007 01:18:16 +0000 (7 01:18 +0000)
committer(no author) <(no author)@41a61cd8-c433-0410-bb1c-e256eeef9e11>
Fri, 7 Sep 2007 01:18:16 +0000 (7 01:18 +0000)
tree42289b730c46428d53483c84cf3a723e208d0564
parentfaa3d660b0b4309cdb83bc8886e17bf4402ae90a
 r1166@dev030 (orig r58681):  dreiss | 2007-09-06 18:26:30 -0700
 Thrift: New methods for C++ transports.

 Summary:
 To support the upcoming variable-length encoding of integers in
 TDenseProtocol, augment Thrift transports with two new methods:
 borrow and consume.  Borrow copies some data out of the transport
 without consuming it, and consume... consumes it.

 Reviewed By: mcslee

 Test Plan:
 Thrift compiles.
 Should check in variable-length integer code for TDenseProtocol
 right after this (git ruulz).

 Revert Plan: revert stuff that uses these methods also.

git-svn-id: http://svn.facebook.com/svnroot/thrift/trunk@568 41a61cd8-c433-0410-bb1c-e256eeef9e11
lib/cpp/src/transport/TTransport.h
lib/cpp/src/transport/TTransportUtils.cpp
lib/cpp/src/transport/TTransportUtils.h