#NEWLINE# def add_response( self , data ) : #NEWLINE# #INDENT# '\n        Add data read from the remote device to this object.\n\n        The size of data added must match exactly the size\n        that get_data_size returns.\n        ' #NEWLINE# assert ( len ( data ) == self . _size_bytes ) #NEWLINE# result = [ ] #NEWLINE# for i in range ( 0 , self . _size_bytes , 4 ) : #NEWLINE# #INDENT# word = ( ( ( ( data [ ( 0 + i ) ] << 0 ) | ( data [ ( 1 + i ) ] << 8 ) ) | ( data [ ( 2 + i ) ] << 16 ) ) | ( data [ ( 3 + i ) ] << 24 ) ) #NEWLINE# result . append ( word ) #NEWLINE# #UNINDENT# self . _result = result