QuaZIP  quazip-0-9
Public Member Functions | List of all members
QuaAdler32 Class Reference

Adler32 checksum. More...

#include <quazip/quaadler32.h>

Inheritance diagram for QuaAdler32:
Inheritance graph
[legend]
Collaboration diagram for QuaAdler32:
Collaboration graph
[legend]

Public Member Functions

quint32 calculate (const QByteArray &data)
 Calculates the checksum for data. More...
 
void reset ()
 Resets the calculation on a checksun for a stream.
 
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...
 

Detailed Description

Adler32 checksum.

This class wrappers the adler32 function with the QuaChecksum32 interface. See QuaChecksum32 for more info.

Member Function Documentation

◆ calculate()

quint32 QuaAdler32::calculate ( const QByteArray &  data)
virtual

Calculates the checksum for data.

data source data

Returns
data checksum

This function has no efect on the value returned by value().

Implements QuaChecksum32.

◆ update()

void QuaAdler32::update ( const QByteArray &  buf)
virtual

Updates the calculated checksum for the stream.

buf next portion of data from the stream

Implements QuaChecksum32.

◆ value()

quint32 QuaAdler32::value ( )
virtual

Value of the checksum calculated for the stream passed throw update().

Returns
checksum

Implements QuaChecksum32.


The documentation for this class was generated from the following files: