summaryrefslogtreecommitdiff
path: root/contrib/thrift_dump.cpp
diff options
context:
space:
mode:
authorDavid Reiss <dreiss@apache.org>2008-05-01 06:17:36 +0000
committerDavid Reiss <dreiss@apache.org>2008-05-01 06:17:36 +0000
commit28f298dd5d9b68c9c0dbaefa95c88d51ed8e430a (patch)
tree4c089343bfd96f8eddb653ec2f746a27d7a8ec9a /contrib/thrift_dump.cpp
parent9a4edfa07fe0c09865015a15d26695823cd4a5fd (diff)
downloadthrift-28f298dd5d9b68c9c0dbaefa95c88d51ed8e430a.tar.gz
Memory-based transport rewrite.
The old implementations of the memory-based transports (TBufferedTransport, TFramedTransport, and TMemoryBuffer) shared very little code and all worked a bit differently. This change unifies them all as subclasses of a single base (TBufferBase) which handles the fast-path operations (when requests can be satisfied by the buffer) with inline methods (that will eventually be made nonvirtual in the template branch) and calls out to pure-virutal methods to handle full/empty buffers. All of the buffer-management is now done in terms of "base and bound" pointers rather than "pos" integers. These classes were moved to TBufferTransports.{h,cpp}. The .h is included in TTransportUtils for backwards compatibility. Also added a "TShortReadTransport" to assist testing transports. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665676 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'contrib/thrift_dump.cpp')
-rw-r--r--contrib/thrift_dump.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/thrift_dump.cpp b/contrib/thrift_dump.cpp
index da359fd80..aac1e1cf6 100644
--- a/contrib/thrift_dump.cpp
+++ b/contrib/thrift_dump.cpp
@@ -7,7 +7,7 @@
#include <cstdlib>
#include <iostream>
-#include <transport/TTransportUtils.h>
+#include <transport/TBufferTransports.h>
#include <transport/TFDTransport.h>
#include <protocol/TBinaryProtocol.h>
#include <protocol/TDebugProtocol.h>