#include <CheckSum.h>
Static Public Member Functions | |
| static int | ChecksumData (const void *buffer, const int length) |
| static void | ChecksumDataWithSlots (int *checksumSlots, const int numSlots, const void *buffer, const int length) |
| static int ChecksumData | ( | const void * | buffer, | |
| const int | length | |||
| ) | [static] |
Performs a simple and quick checksum of a buffer
| buffer | the data buffer to checksum | |
| the | length of the data buffer in bytes |
| static void ChecksumDataWithSlots | ( | int * | checksumSlots, | |
| const int | numSlots, | |||
| const void * | buffer, | |||
| const int | length | |||
| ) | [static] |
Performs a simple and quick checksum of a buffer using a certain chunk size to generate more than 32 bits of data.
| checksumSlots | The checksum slots array, this is cumulative so make sure the array is initialise to a known state. | |
| numSlots | The number of checksumSlots supplied in the array. | |
| buffer | the data buffer to checksum. | |
| the | length of the data buffer in bytes. When using the cumulative feature of this function the number of bytes must be a multiple of numSlots except for the last use of this function for a particular block of data. |
1.5.3