strusBase  0.17
crc32.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Patrick P. Frey
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
9 #ifndef _STRUS_BASE_CRC32_HPP_INCLUDED
10 #define _STRUS_BASE_CRC32_HPP_INCLUDED
11 #include <utility>
12 #include <cstddef>
13 #include "strus/base/stdint.h"
14 
15 namespace strus {
16 namespace utils {
17 
19 class Crc32
20 {
21 public:
22  static uint32_t calc( const char* blk, std::size_t blksize);
23  static uint32_t calc( const char* blk);
24 };
25 
26 }}
27 #endif
28 
static uint32_t calc(const char *blk, std::size_t blksize)
Class with some functions to calculate a CRC32 value of a buffer (memory area)
Definition: crc32.hpp:19