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. More...
 
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. More...
 
static quint32 GetCrcFromFile (const QString &fileName)
 Get 32-bit CRC value for a given file. More...
 

Static Protected Member Functions

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

Detailed Description

Helper class for CRC-32 checksum calculation.

Definition at line 17 of file CCrcCalculator.h.

Member Typedef Documentation

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

Definition at line 20 of file CCrcCalculator.h.

Member Function Documentation

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

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

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

Get 32-bit CRC value for a given file.

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.

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:

© 2007-2017 Witold Gantzke and Kirill Lepskiy