Author: gsim
Date: Mon Jun 16 14:40:27 2008
New Revision: 668325

URL: http://svn.apache.org/viewvc?rev=668325&view=rev
Log:
QPID-1138: codec support for timestamps


Modified:
    incubator/qpid/trunk/qpid/ruby/qpid/codec.rb

Modified: incubator/qpid/trunk/qpid/ruby/qpid/codec.rb
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/ruby/qpid/codec.rb?rev=668325&r1=668324&r2=668325&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/ruby/qpid/codec.rb (original)
+++ incubator/qpid/trunk/qpid/ruby/qpid/codec.rb Mon Jun 16 14:40:27 2008
@@ -73,6 +73,10 @@
       long(lower)
     end
 
+    def timestamp(l)
+      longlong(l)
+    end
+
     def shortstr(s)
       # shortstr is actually octetstr
       octet(s.length)
@@ -200,6 +204,10 @@
       return upper << 32 | lower
     end
 
+    def timestamp()
+      return longlong()
+    end
+
     def shortstr()
       # shortstr is actually octetstr
       return read(octet())


Reply via email to