5752
|
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
|