From fffcffa59b420aeac7931dc97eec18b76c9d1345 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Tue, 1 Apr 2008 17:13:43 +0000 Subject: Added a dump method to buffer for debugging io (patch from rafaels@redhat.com) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@643478 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/framing/Buffer.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cpp/src/qpid/framing/Buffer.h') diff --git a/cpp/src/qpid/framing/Buffer.h b/cpp/src/qpid/framing/Buffer.h index 585379b09a..94cc2d320f 100644 --- a/cpp/src/qpid/framing/Buffer.h +++ b/cpp/src/qpid/framing/Buffer.h @@ -112,8 +112,12 @@ class Buffer template void put(const T& data) { data.encode(*this); } template void get(T& data) { data.decode(*this); } + + void dump(std::ostream&) const; }; +std::ostream& operator<<(std::ostream&, const Buffer&); + }} // namespace qpid::framing -- cgit v1.2.1