mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
21 lines
239 B
C++
21 lines
239 B
C++
// crc32.h
|
|
//
|
|
|
|
// https://xhp.xwis.net/documents/MIX_Format.html
|
|
class Ccrc
|
|
{
|
|
public:
|
|
void do_block(const void* data, int size);
|
|
|
|
void init()
|
|
{
|
|
m_crc = 0;
|
|
}
|
|
|
|
int get_crc() const
|
|
{
|
|
return m_crc;
|
|
}
|
|
private:
|
|
unsigned int m_crc;
|
|
}; |