2014-04-20 09:14:15 +00:00
|
|
|
#ifndef CHECKSUMS_HPP
|
|
|
|
#define CHECKSUMS_HPP
|
|
|
|
|
|
|
|
#include "Athena/Global.hpp"
|
|
|
|
|
|
|
|
namespace Athena
|
|
|
|
{
|
|
|
|
namespace Checksums
|
|
|
|
{
|
2015-08-17 09:32:03 +00:00
|
|
|
atUint32 crc32(const atUint8* data, atUint64 length, atUint32 mask = 0xFFFFFFFF, atUint32 seed = 0xFFFFFFFF);
|
2014-06-18 04:51:18 +00:00
|
|
|
atUint16 crc16CCITT(const atUint8* data, atUint64 length, atUint16 seed = 0xFFFF, atUint16 final = 0);
|
|
|
|
atUint16 crc16(const atUint8* data, atUint64 length);
|
2014-04-20 09:14:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif // CHECKSUMS_HPP
|