#NEWLINE# def decode( self , encoded , offset = 0 ) : #NEWLINE# #INDENT# self . ticket = struct . unpack_from ( '>H' , encoded , offset ) [ 0 ] #NEWLINE# offset += 2 #NEWLINE# ( self . destination , offset ) = data . decode_short_string ( encoded , offset ) #NEWLINE# ( self . source , offset ) = data . decode_short_string ( encoded , offset ) #NEWLINE# ( self . routing_key , offset ) = data . decode_short_string ( encoded , offset ) #NEWLINE# bit_buffer = struct . unpack_from ( 'B' , encoded , offset ) [ 0 ] #NEWLINE# offset += 1 #NEWLINE# self . nowait = ( ( bit_buffer & ( 1 << 0 ) ) != 0 ) #NEWLINE# ( self . arguments , offset ) = data . decode_table ( encoded , offset ) #NEWLINE# return self