From 2250ec787ae5fb84fbebfee35bd9925ebd1dd679 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Tue, 11 Mar 2008 21:56:49 +0000 Subject: 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 --- python/qpid/codec010.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'python/qpid/codec010.py') 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): -- cgit v1.2.1