misc/quazip/quaadler32.h
branchwebgl
changeset 8096 453917e94e55
parent 8053 2e836bebb518
parent 8093 2286a39140da
child 8099 a7f02b902b6f
equal deleted inserted replaced
8053:2e836bebb518 8096:453917e94e55
     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