ULIS  dev4.0.7
Utility Library for Imaging Systems
Functions
CRC32.h File Reference

Functions

uint32 CRC32 (const char *iData)
 Simple CRC32 computation for hashing purposes. More...
 
uint32 CRC32 (const uint8 *iData, int iLen)
 Simple CRC32 computation for hashing purposes. More...
 
constexpr unsigned int crc32b (const char *message)
 
constexpr unsigned int crc32c (const unsigned char *data, int length)
 

Function Documentation

◆ CRC32() [1/2]

CRC32 ( const char *  iData)

Hashes the data of with specified size in bytes. The implementation is not optimal in terms of efficiency, but is simple and straightforward.

Parameters
iDataThe data to hash, cast as pointer to const uint8.
iLenThe size of the data to hash in bytes.
Returns
An uint32 representing the CRC32 hash.

◆ CRC32() [2/2]

CRC32 ( const uint8 iData,
int  iLen 
)

Hashes the data of with specified size in bytes. The implementation is not optimal in terms of efficiency, but is simple and straightforward.

Parameters
iDataThe data to hash, cast as pointer to const uint8.
Returns
An uint32 representing the CRC32 hash.

◆ crc32b()

constexpr unsigned int crc32b ( const char *  message)
constexpr

◆ crc32c()

constexpr unsigned int crc32c ( const unsigned char *  data,
int  length 
)
constexpr