ACF $AcfVersion:0$
Public Types | Static Public Member Functions | Static Protected Member Functions | List of all members
istd::CCrcCalculator Class Reference

Helper class for CRC-32 checksum calculation. More...

#include <CCrcCalculator.h>

Public Types

typedef QVector< quint8 > ByteStream
 

Static Public Member Functions

static quint32 GetCrcFromData (const quint8 *dataPtr, int dataSize)
 Get 32-bit CRC value for the given memory block.
 
static quint32 GetCrcFromStream (const ByteStream &byteStream)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
static quint32 GetCrcFromFile (const QString &fileName)
 Get 32-bit CRC value for a given file.
 

Static Protected Member Functions

static void UpdateCrc (const quint8 &byte, quint32 &dwCrc32)
 Update CRC value for the new input.
 

Detailed Description

Helper class for CRC-32 checksum calculation.

Definition at line 17 of file CCrcCalculator.h.

Member Typedef Documentation

◆ ByteStream

typedef QVector<quint8> istd::CCrcCalculator::ByteStream

Definition at line 20 of file CCrcCalculator.h.

Member Function Documentation

◆ GetCrcFromData()

static quint32 istd::CCrcCalculator::GetCrcFromData ( const quint8 *  dataPtr,
int  dataSize 
)
static

Get 32-bit CRC value for the given memory block.

◆ GetCrcFromFile()

static quint32 istd::CCrcCalculator::GetCrcFromFile ( const QString &  fileName)
static

Get 32-bit CRC value for a given file.

◆ GetCrcFromStream()

static quint32 istd::CCrcCalculator::GetCrcFromStream ( const ByteStream byteStream)
static

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ UpdateCrc()

void istd::CCrcCalculator::UpdateCrc ( const quint8 &  byte,
quint32 &  dwCrc32 
)
inlinestaticprotected

Update CRC value for the new input.

Definition at line 50 of file CCrcCalculator.h.


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