6#include <QtCore/QVector>
7#include <QtCore/QString>
41 static void UpdateCrc(
const quint8&
byte, quint32& dwCrc32);
44 static quint32 s_crcTable[256];
52 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.