ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
QuaCrc32 Class Reference

CRC32 checksum. More...

#include <quazip/quacrc32.h>

Inheritance diagram for QuaCrc32:
Collaboration diagram for QuaCrc32:

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...
 

Detailed Description

CRC32 checksum.

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

Definition at line 35 of file quacrc32.h.

Constructor & Destructor Documentation

◆ QuaCrc32()

QuaCrc32::QuaCrc32 ( )

Definition at line 29 of file quacrc32.cpp.

References reset().

Member Function Documentation

◆ calculate()

quint32 QuaCrc32::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.

Definition at line 31 of file quacrc32.cpp.

◆ reset()

void QuaCrc32::reset ( )
virtual

Resets the calculation on a checksun for a stream.

Implements QuaChecksum32.

Definition at line 35 of file quacrc32.cpp.

Referenced by QuaCrc32().

◆ update()

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

Updates the calculated checksum for the stream.

buf next portion of data from the stream

Implements QuaChecksum32.

Definition at line 37 of file quacrc32.cpp.

◆ value()

quint32 QuaCrc32::value ( )
virtual

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

Returns
checksum

Implements QuaChecksum32.

Definition at line 41 of file quacrc32.cpp.


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