It seems that the parameter 'diff' is not used in this function .And what is the different between 'int_array_writer_lr' and 'int_array_writer'?