summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/framing/StructHelper.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-11-07 20:55:35 +0000
committerGordon Sim <gsim@apache.org>2007-11-07 20:55:35 +0000
commit0a6761806f55ad18d65e2c22cd18a08e2ec5a149 (patch)
treee68f5ba20c7096cd1740131d4ab1a9326dfe0053 /cpp/src/qpid/framing/StructHelper.h
parentc9900041bf70ac76a4eb8753965fe24426ba8cd4 (diff)
downloadqpid-python-0a6761806f55ad18d65e2c22cd18a08e2ec5a149.tar.gz
Fix for QPID-639: c++ now includes sizes for all structs (enabled the same in python & java)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@592895 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/framing/StructHelper.h')
-rw-r--r--cpp/src/qpid/framing/StructHelper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/framing/StructHelper.h b/cpp/src/qpid/framing/StructHelper.h
index 7fc1d2e22b..ad6ba89906 100644
--- a/cpp/src/qpid/framing/StructHelper.h
+++ b/cpp/src/qpid/framing/StructHelper.h
@@ -38,14 +38,14 @@ public:
data.resize(size);
Buffer wbuffer(const_cast<char*>(data.data()), size);
wbuffer.putShort(T::TYPE);
- t.encode(wbuffer);
+ t.encodeStructBody(wbuffer);
}
template <class T> void decode(T& t, const std::string& data) {
Buffer rbuffer(const_cast<char*>(data.data()), data.length());
uint16_t type = rbuffer.getShort();
if (type == T::TYPE) {
- t.decode(rbuffer);
+ t.decodeStructBody(rbuffer);
} else {
throw Exception("Type code does not match");
}