![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Checksum interface. More...
#include <quazip/quachecksum32.h>

Public Member Functions | |
| virtual quint32 | calculate (const QByteArray &data)=0 |
| Calculates the checksum for data. More... | |
| virtual void | reset ()=0 |
| Resets the calculation on a checksun for a stream. More... | |
| virtual void | update (const QByteArray &buf)=0 |
| Updates the calculated checksum for the stream. More... | |
| virtual quint32 | value ()=0 |
| Value of the checksum calculated for the stream passed throw update(). More... | |
Checksum interface.
This is an interface for 32 bit checksums. Classes implementing this interface can calcunate a certin checksum in a single step:
or by streaming the data:
Definition at line 53 of file quachecksum32.h.
|
pure virtual |
Calculates the checksum for data.
data source data
This function has no efect on the value returned by value().
Implemented in QuaCrc32, and QuaAdler32.
|
pure virtual |
Resets the calculation on a checksun for a stream.
Implemented in QuaCrc32, and QuaAdler32.
|
pure virtual |
Updates the calculated checksum for the stream.
buf next portion of data from the stream
Implemented in QuaCrc32, and QuaAdler32.
|
pure virtual |
Value of the checksum calculated for the stream passed throw update().
Implemented in QuaCrc32, and QuaAdler32.