FGx  1
quacrc32.h
1 #ifndef QUACRC32_H
2 #define QUACRC32_H
3 
4 #include "quachecksum32.h"
5 
7 
11 class QUAZIP_EXPORT QuaCrc32 : public QuaChecksum32 {
12 
13 public:
14  QuaCrc32();
15 
16  quint32 calculate(const QByteArray &data);
17 
18  void reset();
19  void update(const QByteArray &buf);
20  quint32 value();
21 
22 private:
23  quint32 checksum;
24 };
25 
26 #endif //QUACRC32_H
QuaCrc32
CRC32 checksum.
Definition: quacrc32.h:11
QuaChecksum32::calculate
virtual quint32 calculate(const QByteArray &data)=0
Calculates the checksum for data.
QuaChecksum32::reset
virtual void reset()=0
Resets the calculation on a checksun for a stream.
QuaChecksum32
Checksum interface.
Definition: quachecksum32.h:28
QuaChecksum32::update
virtual void update(const QByteArray &buf)=0
Updates the calculated checksum for the stream.
QuaChecksum32::value
virtual quint32 value()=0
Value of the checksum calculated for the stream passed throw update().