Main MRPT website > C++ reference for MRPT 1.5.6
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-2017, 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 #ifndef MRPT_UTILS_CRC_H
10 #define MRPT_UTILS_CRC_H
11 
12 #include <mrpt/utils/utils_defs.h>
13 
14 namespace mrpt
15 {
16  namespace utils
17  {
18  /** \addtogroup mrpt_crc CRC functions (in #include <mrpt/utils/crc.h>)
19  * \ingroup mrpt_base_grp
20  * @{ */
21 
22  /** Computes the CRC16 checksum of a block of data. */
23  uint16_t BASE_IMPEXP compute_CRC16( const std::vector<uint8_t> &data, const uint16_t gen_pol = 0x8005 );
24  uint16_t BASE_IMPEXP compute_CRC16(const uint8_t *data, const size_t len, const uint16_t gen_pol = 0x8005 ); //!< \overload
25  /** Computes the CRC32 checksum of a block of data. */
26  uint32_t BASE_IMPEXP compute_CRC32( const std::vector<uint8_t> &data, const uint32_t gen_pol = 0xEDB88320L );
27  uint32_t BASE_IMPEXP compute_CRC32(const uint8_t *data, const size_t len, const uint32_t gen_pol = 0xEDB88320L ); //!< \overload
28  /** @} */
29  }
30 }
31 
32 #endif
unsigned __int16 uint16_t
Definition: rptypes.h:46
GLenum GLsizei len
Definition: glext.h:4349
unsigned char uint8_t
Definition: rptypes.h:43
uint16_t BASE_IMPEXP 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:22
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
uint32_t BASE_IMPEXP 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:27
unsigned __int32 uint32_t
Definition: rptypes.h:49
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: glext.h:3520



Page generated by Doxygen 1.8.14 for MRPT 1.5.6 Git: 4c65e8431 Tue Apr 24 08:18:17 2018 +0200 at lun oct 28 01:35:26 CET 2019