ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
CRC32 checksum. More...
#include <quazip/quacrc32.h>
Public Member Functions | |
QuaCrc32 () | |
quint32 | calculate (const QByteArray &data) |
Calculates the checksum for data. More... | |
void | reset () |
Resets the calculation on a checksun for a stream. More... | |
void | update (const QByteArray &buf) |
Updates the calculated checksum for the stream. More... | |
quint32 | value () |
Value of the checksum calculated for the stream passed throw update(). More... | |
Private Attributes | |
quint32 | checksum |
This class wrappers the crc32 function with the QuaChecksum32 interface. See QuaChecksum32 for more info.
Definition at line 35 of file quacrc32.h.
QuaCrc32::QuaCrc32 | ( | ) |
Definition at line 29 of file quacrc32.cpp.
References reset().
|
virtual |
data source data
This function has no efect on the value returned by value().
Implements QuaChecksum32.
Definition at line 34 of file quacrc32.cpp.
|
virtual |
Implements QuaChecksum32.
Definition at line 39 of file quacrc32.cpp.
References checksum.
Referenced by QuaCrc32().
|
virtual |
buf next portion of data from the stream
Implements QuaChecksum32.
Definition at line 44 of file quacrc32.cpp.
References checksum.
|
virtual |
Implements QuaChecksum32.
Definition at line 49 of file quacrc32.cpp.
References checksum.
|
private |
Definition at line 47 of file quacrc32.h.