PageRenderTime 141ms CodeModel.GetById 80ms app.highlight 1ms RepoModel.GetById 59ms app.codeStats 0ms

/src/libtomahawk/thirdparty/quazip/quazip/quaadler32.h

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