32 return crc32(crc32(0L, Z_NULL, 0), (
const Bytef *)data.data(), data.size());
38 checksum = crc32(checksum, (
const Bytef *)buf.data(), buf.size());
void reset()
Resets the calculation on a checksun for a stream.
void update(const QByteArray &buf)
Updates the calculated checksum for the stream.
quint32 value()
Value of the checksum calculated for the stream passed throw update().
quint32 calculate(const QByteArray &data)
Calculates the checksum for data.