2019-02-13 14:10:36 -05:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
|
|
class CRC32
|
|
|
|
{
|
|
|
|
private:
|
2020-02-15 14:28:13 -05:00
|
|
|
static uint32_t crc32_16bytes(const void* data, size_t length, uint32_t previousCrc32);
|
2019-02-13 14:10:36 -05:00
|
|
|
|
|
|
|
public:
|
2020-02-15 14:28:13 -05:00
|
|
|
static uint32_t GetCRC(uint8_t* buffer, std::streamoff length);
|
2019-02-13 14:10:36 -05:00
|
|
|
static uint32_t GetCRC(string filename);
|
2020-12-19 23:32:47 +03:00
|
|
|
};
|