misc/quazip/quacrc32.h
branchphysfslayer
changeset 8055 04dd8b7fb605
parent 8052 845b5ae03841
child 8056 d5d5e1698554
child 8057 93e16240f178
equal deleted inserted replaced
8052:845b5ae03841 8055:04dd8b7fb605
     1 #ifndef QUACRC32_H
       
     2 #define QUACRC32_H
       
     3 
       
     4 #include "quachecksum32.h"
       
     5 
       
     6 ///CRC32 checksum
       
     7 /** \class QuaCrc32 quacrc32.h <quazip/quacrc32.h>
       
     8 * This class wrappers the crc32 function with the QuaChecksum32 interface.
       
     9 * See QuaChecksum32 for more info.
       
    10 */
       
    11 class QUAZIP_EXPORT QuaCrc32 : public QuaChecksum32 {
       
    12 
       
    13 public:
       
    14 	QuaCrc32();
       
    15 
       
    16 	quint32 calculate(const QByteArray &data);
       
    17 
       
    18 	void reset();
       
    19 	void update(const QByteArray &buf);
       
    20 	quint32 value();
       
    21 
       
    22 private:
       
    23 	quint32 checksum;
       
    24 };
       
    25 
       
    26 #endif //QUACRC32_H