mirror of
https://github.com/barkeser2002/flower.git
synced 2026-09-25 20:17:06 +03:00
13 lines
267 B
C++
13 lines
267 B
C++
#pragma once
|
|
#include <cstdint>
|
|
|
|
namespace engine::crc
|
|
{
|
|
extern uint32_t crc32(const void* data, uint32_t Length, uint32_t crc = 0);
|
|
|
|
template <typename T>
|
|
inline static uint32_t crc32(const T& data, uint32_t crc = 0)
|
|
{
|
|
return crc32(&data, sizeof(T), crc);
|
|
}
|
|
} |