Thrift: Move TStringBuffer functionality into TMemoryBuffer.
authorDavid Reiss <dreiss@apache.org>
Tue, 21 Aug 2007 23:59:34 +0000 (23:59 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 21 Aug 2007 23:59:34 +0000 (23:59 +0000)
commit2dc72c3864e76d9eb14c1f83def63fa2351f4fb2
treea9d1cb7875bb45a5ee9eba760ca229902a34408c
parentdd56497a7c97f07c8d97b9c7323652fb2b7154e0
Thrift: Move TStringBuffer functionality into TMemoryBuffer.

Summary:
TMemoryBuffer already has the necessary plubming to work with C++ strings.
This revision implements that functionality with a few wrapper methods.
Removed TStringBuffer as it should no longer be required (and it is tricky
to safely inherit from a class that has a non-virtual destructor).
Also refactored the TMemoryBuffer constructors a bit.

Reviewed By: aditya, yunfang

Test Plan:
test/TMemoryBufferTest.cpp

Revert Plan: ok

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665213 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/transport/TTransportUtils.cpp
lib/cpp/src/transport/TTransportUtils.h
test/DebugProtoTest.cpp
test/DebugProtoTest.thrift
test/OptionalRequiredTest.cpp
test/OptionalRequiredTest.thrift
test/TMemoryBufferTest.cpp [new file with mode: 0644]