Author: gsim
Date: Mon Apr 14 13:34:30 2008
New Revision: 647990
URL: http://svn.apache.org/viewvc?rev=647990&view=rev
Log:
Fix to struct32 encoding
Modified:
incubator/qpid/trunk/qpid/cpp/src/qpid/framing/StructHelper.h
Modified: incubator/qpid/trunk/qpid/cpp/src/qpid/framing/StructHelper.h
URL:
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/qpid/framing/StructHelper.h?rev=647990&r1=647989&r2=647990&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/qpid/framing/StructHelper.h (original)
+++ incubator/qpid/trunk/qpid/cpp/src/qpid/framing/StructHelper.h Mon Apr 14
13:34:30 2008
@@ -34,7 +34,7 @@
public:
template <class T> void encode(const T t, std::string& data) {
- uint32_t size = t.size() + 2/*type*/;
+ uint32_t size = t.bodySize() + 2/*type*/;
data.resize(size);
Buffer wbuffer(const_cast<char*>(data.data()), size);
wbuffer.putShort(T::TYPE);