29 #include <QtCore/QByteArray>
31 #include "quachecksum32.h"
44 quint32
calculate(
const QByteArray &data)
override;
46 void reset()
override;
47 void update(
const QByteArray &buf)
override;
48 quint32
value()
override;
virtual quint32 calculate(const QByteArray &data)=0
Calculates the checksum for data.
virtual void reset()=0
Resets the calculation on a checksun for a stream.
Adler32 checksum.
Definition: quaadler32.h:38
Checksum interface.
Definition: quachecksum32.h:52
virtual void update(const QByteArray &buf)=0
Updates the calculated checksum for the stream.
void update(const QByteArray &buf) override
Updates the calculated checksum for the stream.
Definition: quaadler32.cpp:45
quint32 calculate(const QByteArray &data) override
Calculates the checksum for data.
Definition: quaadler32.cpp:35
virtual quint32 value()=0
Value of the checksum calculated for the stream passed throw update().
void reset() override
Resets the calculation on a checksun for a stream.
Definition: quaadler32.cpp:40
quint32 value() override
Value of the checksum calculated for the stream passed throw update().
Definition: quaadler32.cpp:50