pub fn update(&mut self, data: &[<T as FletcherAccumulator>::InputType]) {
        for chunk in data.chunks(<T as FletcherAccumulator>::MAX_CHUNK_SIZE) {
            let mut intermediate_a = self.a;
            let mut intermediate_b = self.b;

            for element in chunk {
                intermediate_a += (*element).into();
                intermediate_b += intermediate_a;
            }

            self.a = Self::reduce(intermediate_a);
            self.b = Self::reduce(intermediate_b);
        }

        // One last reduction must be done since we  process in chunks
        self.a = Self::reduce(self.a);
        self.b = Self::reduce(self.b);
    }
/// Updates the checksum with the given input data
Updates the checksum with the given input data
Updates the checksum with the given input data
pub fn update(&mut self, data: &[<T as FletcherAccumulator>::InputType]) {
        for chunk in data.chunks(<T as FletcherAccumulator>::MAX_CHUNK_SIZE) {
            let mut intermediate_a = self.a;
            let mut intermediate_b = self.b;
            for element in chunk {
                intermediate_a += (*element).into();
                intermediate_b += intermediate_a;
            }
            self.a = Self::reduce(intermediate_a);
            self.b = Self::reduce(intermediate_b);
        }
        // One last reduction must be done since we  process in chunks
        self.a = Self::reduce(self.a);
        self.b = Self::reduce(self.b);
    }
pub fn update ( & mut self , data : & [ < T as FletcherAccumulator > :: InputType ] ) { for chunk in data . chunks ( < T as FletcherAccumulator > :: MAX_CHUNK_SIZE ) { let mut intermediate_a = self . a ; let mut intermediate_b = self . b ; for element in chunk { intermediate_a += ( * element ) . into ( ) ; intermediate_b += intermediate_a ; } self . a = Self :: reduce ( intermediate_a ) ; self . b = Self :: reduce ( intermediate_b ) ; } // One last reduction must be done since we  process in chunks self . a = Self :: reduce ( self . a ) ; self . b = Self :: reduce ( self . b ) ; }
Updates the checksum with the given input data
Updates the checksum with the given input data
&mut self
data
&[<T as FletcherAccumulator>::InputType]
&mut self
data
&[<T as FletcherAccumulator>::InputType]