2014-07-10 20:24:28 -04:00
|
|
|
#pragma once
|
2014-07-09 18:29:07 -04:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
|
|
class CRC32
|
|
|
|
{
|
|
|
|
private:
|
2019-12-31 20:23:26 -05:00
|
|
|
static uint32_t crc32_16bytes(const void* data, size_t length, uint32_t previousCrc32);
|
2014-07-09 18:29:07 -04:00
|
|
|
|
|
|
|
public:
|
2015-07-11 10:01:06 -04:00
|
|
|
static uint32_t GetCRC(uint8_t *buffer, std::streamoff length);
|
|
|
|
static uint32_t GetCRC(string filename);
|
2014-07-09 18:29:07 -04:00
|
|
|
};
|