QuaZIP quazip-0-6-2
|
00001 #ifndef QUACRC32_H 00002 #define QUACRC32_H 00003 00004 /* 00005 Copyright (C) 2005-2014 Sergey A. Tachenov 00006 00007 This file is part of QuaZIP. 00008 00009 QuaZIP is free software: you can redistribute it and/or modify 00010 it under the terms of the GNU Lesser General Public License as published by 00011 the Free Software Foundation, either version 3 of the License, or 00012 (at your option) any later version. 00013 00014 QuaZIP is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 GNU Lesser General Public License for more details. 00018 00019 You should have received a copy of the GNU Lesser General Public License 00020 along with QuaZIP. If not, see <http://www.gnu.org/licenses/>. 00021 00022 See COPYING file for the full LGPL text. 00023 00024 Original ZIP package is copyrighted by Gilles Vollant and contributors, 00025 see quazip/(un)zip.h files for details. Basically it's the zlib license. 00026 */ 00027 00028 #include "quachecksum32.h" 00029 00031 00035 class QUAZIP_EXPORT QuaCrc32 : public QuaChecksum32 { 00036 00037 public: 00038 QuaCrc32(); 00039 00040 quint32 calculate(const QByteArray &data); 00041 00042 void reset(); 00043 void update(const QByteArray &buf); 00044 quint32 value(); 00045 00046 private: 00047 quint32 checksum; 00048 }; 00049 00050 #endif //QUACRC32_H