mirror of https://github.com/libAthena/athena.git
16 lines
411 B
C++
16 lines
411 B
C++
#ifndef CHECKSUMS_HPP
|
|
#define CHECKSUMS_HPP
|
|
|
|
#include "Athena/Global.hpp"
|
|
|
|
namespace Athena
|
|
{
|
|
namespace Checksums
|
|
{
|
|
atUint32 crc32(const atUint8* data, atUint64 length, atUint32 mask = 0xFFFFFFFF, atUint32 seed = 0xFFFFFFFF);
|
|
atUint16 crc16CCITT(const atUint8* data, atUint64 length, atUint16 seed = 0xFFFF, atUint16 final = 0);
|
|
atUint16 crc16(const atUint8* data, atUint64 length);
|
|
}
|
|
}
|
|
#endif // CHECKSUMS_HPP
|