diff options
| author | Gordon Sim <gsim@apache.org> | 2008-04-14 20:34:30 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2008-04-14 20:34:30 +0000 |
| commit | 9c66633bd604b742003b0ecef308ece060199e79 (patch) | |
| tree | 4e9a5a668f4c5e2d955385efc15c8d22575005b5 | |
| parent | 9438117fe2e2593b4689c6219566f2365e8f7445 (diff) | |
| download | qpid-python-9c66633bd604b742003b0ecef308ece060199e79.tar.gz | |
Fix to struct32 encoding
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@647990 13f79535-47bb-0310-9956-ffa450edef68
| -rw-r--r-- | qpid/cpp/src/qpid/framing/StructHelper.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/framing/StructHelper.h b/qpid/cpp/src/qpid/framing/StructHelper.h index ad6ba89906..e3dce4f5ec 100644 --- a/qpid/cpp/src/qpid/framing/StructHelper.h +++ b/qpid/cpp/src/qpid/framing/StructHelper.h @@ -34,7 +34,7 @@ class StructHelper 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); |
