From a653ebe5bdfad1d44a576d2ab23f7e6ea80ba96f Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 7 Oct 2008 17:24:24 +0000 Subject: Rename size() to encodedSize() for encoded types to allow std collection interfaces for types like FieldTable and Array. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@702551 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/framing/BodyHolder.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp/src/qpid/framing/BodyHolder.cpp') diff --git a/cpp/src/qpid/framing/BodyHolder.cpp b/cpp/src/qpid/framing/BodyHolder.cpp index 1b2f74de2c..b30a52a38e 100644 --- a/cpp/src/qpid/framing/BodyHolder.cpp +++ b/cpp/src/qpid/framing/BodyHolder.cpp @@ -64,12 +64,12 @@ void BodyHolder::decode(uint8_t type, Buffer& buffer, uint32_t size) { get()->decode(buffer, size); } -uint32_t BodyHolder::size() const { +uint32_t BodyHolder::encodedSize() const { const AMQMethodBody* method=getMethod(); if (method) - return sizeof(ClassId)+sizeof(MethodId)+method->size(); + return sizeof(ClassId)+sizeof(MethodId)+method->encodedSize(); else - return get()->size(); + return get()->encodedSize(); } }} // namespace qpid::framing -- cgit v1.2.1