Go to the documentation of this file.
10#include <QtCore/QVector>
11#include <QtCore/QString>
45 static void UpdateCrc(
const quint8&
byte, quint32& dwCrc32);
48 static quint32 s_crcTable[256];
56 crcValue = (crcValue >> 8) ^ s_crcTable[
byte ^ (crcValue & 0x000000FF)];
Helper class for CRC-32 checksum calculation.
static quint32 GetCrcFromFile(const QString &fileName)
Get 32-bit CRC value for a given file.
QVector< quint8 > ByteStream
static quint32 GetCrcFromStream(const ByteStream &byteStream)
This is an overloaded member function, provided for convenience. It differs from the above function o...
static quint32 GetCrcFromData(const quint8 *dataPtr, int dataSize)
Get 32-bit CRC value for the given memory block.
static void UpdateCrc(const quint8 &byte, quint32 &dwCrc32)
Update CRC value for the new input.
© Witold Gantzke and Kirill Lepskiy