#NEWLINE# def decode( self , encoded , offset = 0 ) : #NEWLINE# #INDENT# self . reply_code = struct . unpack_from ( '>H' , encoded , offset ) [ 0 ] #NEWLINE# offset += 2 #NEWLINE# ( self . reply_text , offset ) = data . decode_short_string ( encoded , offset ) #NEWLINE# self . class_id = struct . unpack_from ( '>H' , encoded , offset ) [ 0 ] #NEWLINE# offset += 2 #NEWLINE# self . method_id = struct . unpack_from ( '>H' , encoded , offset ) [ 0 ] #NEWLINE# offset += 2 #NEWLINE# return offset