/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. #include "quachecksum32.h"
  4. ///CRC32 checksum
  5. /** \class QuaCrc32 quacrc32.h <quazip/quacrc32.h>
  6. * This class wrappers the crc32 function with the QuaChecksum32 interface.
  7. * See QuaChecksum32 for more info.
  8. */
  9. class QUAZIP_EXPORT QuaCrc32 : public QuaChecksum32 {
  10. public:
  11. QuaCrc32();
  12. quint32 calculate(const QByteArray &data);
  13. void reset();
  14. void update(const QByteArray &buf);
  15. quint32 value();
  16. private:
  17. quint32 checksum;
  18. };
  19. #endif //QUACRC32_H