Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
BIAS::Checksum Class Reference

Utility class to calculate checksums as CRCs (Cyclic Redundancy Check). More...

#include <Utils/Checksum.hh>

Public Member Functions

 Checksum ()
 
virtual ~Checksum ()
 

Static Public Member Functions

static bool CalcCRC_CCITT16 (unsigned int &crc, unsigned char *input, unsigned lenght)
 Calculates CCITT-16 checksum with most significant bit first MSB. More...
 

Detailed Description

Utility class to calculate checksums as CRCs (Cyclic Redundancy Check).

Currently Only the CCITT16 is claculated, add functions when necessary.

Note
The type of checksum is defined by the polynomial used: for the CCITT16 it is x^16+x^12+x^5+1 = (1) 0001 0000 0010 0001 = 0x1021 this hex code can be replaced in the function to calculate different types of CRCs see http://en.wikipedia.org/wiki/Cyclic_redundancy_check for a list of polynomials
Author
ischiller
Date
01/2011

Definition at line 44 of file Checksum.hh.

Constructor & Destructor Documentation

Checksum::Checksum ( )

Definition at line 32 of file Checksum.cpp.

Checksum::~Checksum ( )
virtual

Definition at line 34 of file Checksum.cpp.


The documentation for this class was generated from the following files: