summaryrefslogtreecommitdiff
path: root/python/qpid/codec010.py
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-03-11 21:56:49 +0000
committerGordon Sim <gsim@apache.org>2008-03-11 21:56:49 +0000
commit2250ec787ae5fb84fbebfee35bd9925ebd1dd679 (patch)
treedb1768a5f613ca2a70187c52b96896ca1ccdcfdc /python/qpid/codec010.py
parentae650ea316f73b40db94a02556fd2cb335a7c816 (diff)
downloadqpid-python-2250ec787ae5fb84fbebfee35bd9925ebd1dd679.tar.gz
Enabled tx methods on final 0-10 path and converted tests accordingly
Added read/write- uuid to codec010 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@636121 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/codec010.py')
-rw-r--r--python/qpid/codec010.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/qpid/codec010.py b/python/qpid/codec010.py
index 60adbdc2e4..0e4244fb75 100644
--- a/python/qpid/codec010.py
+++ b/python/qpid/codec010.py
@@ -221,6 +221,12 @@ class Codec(Packer):
attr = "write_uint%d" % (width*8)
getattr(self, attr)(n)
+ def write_uuid(self, s):
+ self.pack("16s", s)
+
+ def read_uuid(self):
+ return self.unpack("16s")
+
class StringCodec(Codec):