misc/quazip/quaadler32.h
changeset 5752 ea95ee97c805
equal deleted inserted replaced
5750:6bbf7aee2cdf 5752:ea95ee97c805
       
     1 #ifndef QUAADLER32_H
       
     2 #define QUAADLER32_H
       
     3 
       
     4 #include <QByteArray>
       
     5 
       
     6 #include "quachecksum32.h"
       
     7 
       
     8 /// Adler32 checksum
       
     9 /** \class QuaAdler32 quaadler32.h <quazip/quaadler32.h>
       
    10  * This class wrappers the adler32 function with the QuaChecksum32 interface.
       
    11  * See QuaChecksum32 for more info.
       
    12  */
       
    13 class QuaAdler32 : public QuaChecksum32
       
    14 {
       
    15 
       
    16 public:
       
    17 	QuaAdler32();
       
    18 
       
    19 	quint32 calculate(const QByteArray &data);
       
    20 
       
    21 	void reset();
       
    22 	void update(const QByteArray &buf);
       
    23 	quint32 value();
       
    24 
       
    25 private:
       
    26 	quint32 checksum;
       
    27 };
       
    28 
       
    29 #endif //QUAADLER32_H