mirror of
https://github.com/libAthena/athena.git
synced 2025-08-20 10:51:38 +00:00
14 lines
565 B
C++
14 lines
565 B
C++
#ifndef CHECKSUMS_HPP
|
|
#define CHECKSUMS_HPP
|
|
|
|
#include "athena/Global.hpp"
|
|
|
|
namespace athena::checksums
|
|
{
|
|
atUint64 crc64(const atUint8* data, atUint64 length, atUint64 seed = 0xFFFFFFFFFFFFFFFF, atUint64 final = 0xFFFFFFFFFFFFFFFF);
|
|
atUint32 crc32(const atUint8* data, atUint64 length, atUint32 seed = 0xFFFFFFFF, atUint32 final = 0xFFFFFFFF);
|
|
atUint16 crc16CCITT(const atUint8* data, atUint64 length, atUint16 seed = 0xFFFF, atUint16 final = 0);
|
|
atUint16 crc16(const atUint8* data, atUint64 length, atUint16 seed = 0, atUint16 final = 0);
|
|
}
|
|
#endif // CHECKSUMS_HPP
|