#NEWLINE# def set_dword( _bytearray , byte_index , dword ) : #NEWLINE# #INDENT# dword = int ( i ) #NEWLINE# _bytes = struct . unpack ( '4B' , struct . pack ( '>I' , dword ) ) #NEWLINE# for ( i , b ) in enumerate ( _bytes ) : #NEWLINE# #INDENT# _bytearray [ ( byte_index + i ) ] = b