#NEWLINE# def decode( self , encoded , offset = 0 ) : #NEWLINE# #INDENT# self . ticket = struct . unpack_from ( '>H' , encoded , offset ) [ 0 ] #NEWLINE# offset += 2 #NEWLINE# ( self . queue , offset ) = data . decode_short_string ( encoded , offset ) #NEWLINE# ( self . exchange , offset ) = data . decode_short_string ( encoded , offset ) #NEWLINE# ( self . routing_key , offset ) = data . decode_short_string ( offset , offset ) #NEWLINE# ( self . arguments , offset ) = data . decode_table ( encoded , offset ) #NEWLINE# return self