Generates and validates checksums.
More...
#include <CheckSum.h>
List of all members.
Public Member Functions |
| CheckSum () |
| Default constructor.
|
void | Clear () |
void | Add (unsigned int w) |
void | Add (unsigned short w) |
void | Add (unsigned char *b, unsigned int length) |
void | Add (unsigned char b) |
unsigned int | Get () |
Protected Attributes |
unsigned short | r |
unsigned short | c1 |
unsigned short | c2 |
unsigned int | sum |
Detailed Description
Generates and validates checksums.
Definition at line 12 of file CheckSum.h.
Constructor & Destructor Documentation
CheckSum::CheckSum |
( |
|
) |
[inline] |
Default constructor.
Definition at line 19 of file CheckSum.h.
Member Function Documentation
void CheckSum::Add |
( |
unsigned int |
w |
) |
|
void CheckSum::Add |
( |
unsigned char * |
b, |
|
|
unsigned int |
length | |
|
) |
| | |
void CheckSum::Add |
( |
unsigned char |
b |
) |
|
void CheckSum::Add |
( |
unsigned short |
w |
) |
|
void CheckSum::Clear |
( |
void |
|
) |
[inline] |
unsigned int CheckSum::Get |
( |
|
) |
[inline] |
Member Data Documentation
The documentation for this class was generated from the following files: