diff options
| author | Gordon Sim <gsim@apache.org> | 2008-04-30 14:16:38 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2008-04-30 14:16:38 +0000 |
| commit | a2b413c1c0bea044d0c82ac3e1a99de5036761d1 (patch) | |
| tree | 01166e7547caf8e5aee5a8569fa53db75f1d24f3 /python/qpid/codec010.py | |
| parent | c86a77f2ce6150ce8fc0770604d92502acd996b8 (diff) | |
| download | qpid-python-a2b413c1c0bea044d0c82ac3e1a99de5036761d1.tar.gz | |
QPID-988 and QPID-989: fixes to framing for final 0-10 spec
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@652386 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/codec010.py')
| -rw-r--r-- | python/qpid/codec010.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/qpid/codec010.py b/python/qpid/codec010.py index 0ba3341665..1c76666de1 100644 --- a/python/qpid/codec010.py +++ b/python/qpid/codec010.py @@ -156,6 +156,7 @@ class Codec(Packer): def write_map(self, m): sc = StringCodec(self.spec) + sc.write_uint32(len(m)) for k, v in m.items(): type = self.spec.encoding(v.__class__) if type == None: @@ -163,10 +164,10 @@ class Codec(Packer): sc.write_str8(k) sc.write_uint8(type.code) type.encode(sc, v) - # XXX: need to put in count when CPP supports it self.write_vbin32(sc.encoded) def read_map(self): sc = StringCodec(self.spec, self.read_vbin32()) + count = sc.read_uint32() result = {} while sc.encoded: k = sc.read_str8() |
