21 const std::vector<uint8_t>&
data,
const uint16_t gen_pol)
27 const std::vector<uint8_t>&
data,
const uint32_t gen_pol)
48 abData[1] = abData[0];
53 uCrc16 = (uCrc16 & 0x7fff) << 1;
60 uCrc16 ^= (abData[0] | (abData[1] << 8));
67 unsigned long ulCRC = i;
68 for (
int j = 8; j > 0; j--)
71 ulCRC = (ulCRC >> 1) ^ CRC32_POLYNOMIAL;
82 unsigned long ulCRC = 0;
85 unsigned long ulTemp1 = (ulCRC >> 8) & 0x00FFFFFFL;
86 unsigned long ulTemp2 =
88 ulCRC = ulTemp1 ^ ulTemp2;
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
unsigned __int16 uint16_t
uint16_t compute_CRC16(const std::vector< uint8_t > &data, const uint16_t gen_pol=0x8005)
Computes the CRC16 checksum of a block of data.
unsigned long CRC32Value(int i, const uint32_t CRC32_POLYNOMIAL)
uint32_t compute_CRC32(const std::vector< uint8_t > &data, const uint32_t gen_pol=0xEDB88320L)
Computes the CRC32 checksum of a block of data.
unsigned __int32 uint32_t
GLsizei GLsizei GLenum GLenum const GLvoid * data