Main MRPT website > C++ reference for MRPT 1.9.9
crc.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #pragma once
10 
11 #include <vector>
12 #include <cstdint>
13 #include <cstddef>
14 
15 namespace mrpt
16 {
17 namespace system
18 {
19 /** \addtogroup mrpt_crc CRC functions (in #include <mrpt/system/crc.h>)
20  * \ingroup mrpt_system_grp
21  * @{ */
22 
23 /** Computes the CRC16 checksum of a block of data. */
25  const std::vector<uint8_t>& data, const uint16_t gen_pol = 0x8005);
26 /** \overload */
28  const uint8_t* data, const size_t len, const uint16_t gen_pol = 0x8005);
29 /** Computes the CRC32 checksum of a block of data. */
31  const std::vector<uint8_t>& data, const uint32_t gen_pol = 0xEDB88320L);
32 /** \overload */
34  const uint8_t* data, const size_t len,
35  const uint32_t gen_pol = 0xEDB88320L);
36 /** @} */
37 } // namespace system
38 } // namespace mrpt
uint16_t
unsigned __int16 uint16_t
Definition: rptypes.h:44
mrpt::system::compute_CRC16
uint16_t compute_CRC16(const std::vector< uint8_t > &data, const uint16_t gen_pol=0x8005)
Computes the CRC16 checksum of a block of data.
Definition: crc.cpp:15
mrpt::system::compute_CRC32
uint32_t compute_CRC32(const std::vector< uint8_t > &data, const uint32_t gen_pol=0xEDB88320L)
Computes the CRC32 checksum of a block of data.
Definition: crc.cpp:22
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
uint8_t
unsigned char uint8_t
Definition: rptypes.h:41
data
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: glext.h:3547
len
GLenum GLsizei len
Definition: glext.h:4712
uint32_t
unsigned __int32 uint32_t
Definition: rptypes.h:47



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST