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
16
using namespace
std;
17
18
namespace
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
openM++ namespace
Definition:
log.h:32
openm::crc32String
string crc32String(const string &i_source)
return CRC-32 of source string
Definition:
crc32.cpp:62
openm::calculateNextCrc32
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
include
crc32.h
Generated on Mon Oct 21 2024 23:02:25 for OpenM++ runtime library (libopenm) by
1.9.4