#include <crc32.hpp>
|
| crc32 () |
|
uint32_t | hash (const void *data, size_t length, uint32_t oldcrc=Tint) |
|
const char * | get_name () |
|
template<uint32_t poly, uint32_t Tint = 0xFFFFFFFF>
class std::crc32< poly, Tint >
◆ crc32()
template<uint32_t poly, uint32_t Tint = 0xFFFFFFFF>
◆ get_name()
template<uint32_t poly, uint32_t Tint = 0xFFFFFFFF>
const char* std::crc32< poly, Tint >::get_name |
( |
| ) |
|
|
inline |
◆ hash()
template<uint32_t poly, uint32_t Tint = 0xFFFFFFFF>
uint32_t std::crc32< poly, Tint >::hash |
( |
const void * |
data, |
|
|
size_t |
length, |
|
|
uint32_t |
oldcrc = Tint |
|
) |
| |
|
inline |
46 uint32_t crc = oldcrc;
47 unsigned char* current = (
unsigned char*) data;
49 for(uint32_t i = 0; i < length; i++) {
50 crc = m_lookuptable[(crc ^ current[i]) & 0xFF] ^ (crc >> 8);
◆ default_value
template<uint32_t poly, uint32_t Tint = 0xFFFFFFFF>
constexpr uint32_t std::crc32< poly, Tint >::default_value = Tint |
|
static |
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: