PageRenderTime 102ms CodeModel.GetById 60ms app.highlight 2ms RepoModel.GetById 39ms app.codeStats 0ms

/src/libtomahawk/thirdparty/quazip/quazip/quacrc32.h

http://github.com/tomahawk-player/tomahawk
C++ Header | 26 lines | 14 code | 7 blank | 5 comment | 0 complexity | f024e4d9fa4796e2d57186e2e57b13c5 MD5 | raw file
 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*/
11class QUAZIP_EXPORT QuaCrc32 : public QuaChecksum32 {
12
13public:
14	QuaCrc32();
15
16	quint32 calculate(const QByteArray &data);
17
18	void reset();
19	void update(const QByteArray &buf);
20	quint32 value();
21
22private:
23	quint32 checksum;
24};
25
26#endif //QUACRC32_H