Thrift: New methods for C++ transports.
authorDavid Reiss <dreiss@apache.org>
Fri, 7 Sep 2007 01:26:30 +0000 (01:26 +0000)
committerDavid Reiss <dreiss@apache.org>
Fri, 7 Sep 2007 01:26:30 +0000 (01:26 +0000)
commitd8429fcc1020dec143e36dbfc055edbd3009f11b
tree42289b730c46428d53483c84cf3a723e208d0564
parent2c2e6d27a238746a0db9982cc4eb35c093553361
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: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665251 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/transport/TTransport.h
lib/cpp/src/transport/TTransportUtils.cpp
lib/cpp/src/transport/TTransportUtils.h