Pioneer
Loading...
Searching...
No Matches
CRC32.h
Go to the documentation of this file.
1// Copyright © 2008-2023 Pioneer Developers. See AUTHORS.txt for details
2// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
3
4#ifndef _CRC32_H
5#define _CRC32_H
6
7#include <SDL_stdinc.h>
8
9class CRC32 {
10public:
11 CRC32();
12
13 void AddData(const char *data, int length);
14 Uint32 GetChecksum() const { return m_checksum; }
15
16private:
17 Uint32 m_checksum;
18
19 static const Uint32 s_polynomial;
20 static bool s_lookupTableGenerated;
21 static Uint32 s_lookupTable[256];
22};
23
24#endif
Definition CRC32.h:9
Uint32 GetChecksum() const
Definition CRC32.h:14
void AddData(const char *data, int length)
Definition CRC32.cpp:37
CRC32()
Definition CRC32.cpp:22