Author: aconway
Date: 2008-10-07 13:24:28 -0400 (Tue, 07 Oct 2008)
New Revision: 2600
Modified:
store/trunk/cpp/lib/BindingDbt.cpp
Log:
Rename size() to encodedSize() for encoded types to allow std collection interfaces for
types like FieldTable and Array.
Modified: store/trunk/cpp/lib/BindingDbt.cpp
===================================================================
--- store/trunk/cpp/lib/BindingDbt.cpp 2008-10-07 15:17:04 UTC (rev 2599)
+++ store/trunk/cpp/lib/BindingDbt.cpp 2008-10-07 17:24:28 UTC (rev 2600)
@@ -50,5 +50,5 @@
uint32_t BindingDbt::encodedSize(const PersistableExchange& /*not used*/, const
PersistableQueue& q, const string& k, const FieldTable& a)
{
- return 8 /*queue id*/ + q.getName().size() + 1 + k.size() + 1 + a.size();
+ return 8 /*queue id*/ + q.getName().size() + 1 + k.size() + 1 + a.encodedSize();
}
Show replies by date