PCL
Checksum Calculation Functions

Functions

template<class C >
uint32 pcl::Checksum (const C &data)
 
size_type PCL_FUNC pcl::Checksum (const void *data, size_type length)
 
template<class C >
uint32 pcl::CRC32 (const C &data)
 
uint32 PCL_FUNC pcl::CRC32 (const void *data, size_type length)
 

Detailed Description

Function Documentation

◆ Checksum() [1/2]

template<class C >
uint32 pcl::Checksum ( const C &  data)
inline

Returns the standard checksum value for a container.

Parameters
dataReference to a container whose standard checksum will be calculated. The checksum number will be generated for the current data bytes in this container instance.
See also
Checksum( const void*, size_type )

Definition at line 112 of file Checksum.h.

◆ Checksum() [2/2]

size_type PCL_FUNC pcl::Checksum ( const void *  data,
size_type  length 
)
inline

Returns the standard checksum value calculated for a data sequence. The returned value is the total number of bits set in the sequence of input data bytes.

Parameters
dataAddress of the first byte in the data sequence.
lengthLength in bytes of the data sequence.
See also
Checksum( const C& )

Definition at line 82 of file Checksum.h.

◆ CRC32() [1/2]

template<class C >
uint32 pcl::CRC32 ( const C &  data)
inline

Returns the CRC-32 error-detecting code for a container.

Parameters
dataReference to a container whose CRC-32 checksum will be calculated. The checksum code will be generated for the current data bytes in this container instance.
See also
CRC32( const void*, size_type )

Definition at line 149 of file Checksum.h.

◆ CRC32() [2/2]

uint32 PCL_FUNC pcl::CRC32 ( const void *  data,
size_type  length 
)

Returns the CRC-32 error-detecting code calculated for a data sequence.

Parameters
dataAddress of the first byte in the data sequence.
lengthLength in bytes of the data sequence.

References

CRC calculation routine based on original code by Michael Barr. The employed code requires the following copyright notice:

Copyright (c) 2000 by Michael Barr. This software is placed into the public domain and may be used for any purpose. However, this notice must not be changed or removed and no warranty is either expressed or implied by its publication or distribution.

See also
CRC32( const C& )