OpenM++ runtime library (libopenm)
crc32.h
Go to the documentation of this file.
1
5// Copyright (c) 2016 OpenM++
6// This code is licensed under the MIT license (see LICENSE.txt for details)
7
8#ifndef CRC32_H
9#define CRC32_H
10
11#include <cstdint>
12#include <string>
13#include <iomanip>
14#include <sstream>
15
16using namespace std;
17
18namespace openm
19{
21 extern uint32_t calculateNextCrc32(uint32_t i_initialCrc, const void * i_data, size_t i_dataSize);
22
24 extern string crc32String(const string & i_source);
25}
26
27#endif // CRC32_H
openM++ namespace
Definition: log.h:32
string crc32String(const string &i_source)
return CRC-32 of source string
Definition: crc32.cpp:62
uint32_t calculateNextCrc32(uint32_t i_initialCrc, const void *i_data, size_t i_dataSize)
calculate CRC-32 on next data block of bytes
Definition: crc32.cpp:48