source: s10k/CommonLibs/quazip-0.7.2/quazip/quaadler32.h@ 1104

Last change on this file since 1104 was 1096, checked in by s10k, 7 years ago

Added zlib, quazip, basicxmlsyntaxhighlighter, conditionalsemaphore and linenumberdisplay libraries. zlib and quazip are pre-compiled, but you can compile them yourself, just delete the dll files (or equivalent binary files to your OS)

File size: 1.4 KB
Line 
1#ifndef QUAADLER32_H
2#define QUAADLER32_H
3
4/*
5Copyright (C) 2010 Adam Walczak
6Copyright (C) 2005-2014 Sergey A. Tachenov
7
8This file is part of QuaZIP.
9
10QuaZIP is free software: you can redistribute it and/or modify
11it under the terms of the GNU Lesser General Public License as published by
12the Free Software Foundation, either version 2.1 of the License, or
13(at your option) any later version.
14
15QuaZIP is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU Lesser General Public License for more details.
19
20You should have received a copy of the GNU Lesser General Public License
21along with QuaZIP. If not, see <http://www.gnu.org/licenses/>.
22
23See COPYING file for the full LGPL text.
24
25Original ZIP package is copyrighted by Gilles Vollant and contributors,
26see quazip/(un)zip.h files for details. Basically it's the zlib license.
27*/
28
29#include <QByteArray>
30
31#include "quachecksum32.h"
32
33/// Adler32 checksum
34/** \class QuaAdler32 quaadler32.h <quazip/quaadler32.h>
35 * This class wrappers the adler32 function with the QuaChecksum32 interface.
36 * See QuaChecksum32 for more info.
37 */
38class QUAZIP_EXPORT QuaAdler32 : public QuaChecksum32
39{
40
41public:
42 QuaAdler32();
43
44 quint32 calculate(const QByteArray &data);
45
46 void reset();
47 void update(const QByteArray &buf);
48 quint32 value();
49
50private:
51 quint32 checksum;
52};
53
54#endif //QUAADLER32_H
Note: See TracBrowser for help on using the repository browser.