Go to the source code of this file.
Functions | |
void | updateCRC16 (unsigned short *, unsigned char) |
file: CRC16.HPP | |
void | updateCRC32 (unsigned long *, unsigned char) |
file: CRC32.HPP |
void updateCRC16 | ( | unsigned short * | , | |
unsigned | char | |||
) |
file: CRC16.HPP
CRC - Cyclic Redundancy Check (16-bit)
A CRC-checksum is used to be sure, the data hasn't changed or is false. To create a CRC-checksum, initialise a check-variable (unsigned short), and set this to zero. Than call for every byte in the file (e.g.) the procedure updateCRC16 with this check-variable as the first parameter, and the byte as the second. At the end, the check-variable contains the CRC-checksum.
implemented by Michael Neumann, 14.06.1998
References CRC16_table.
void updateCRC32 | ( | unsigned long * | , | |
unsigned | char | |||
) |
file: CRC32.HPP
CRC - Cyclic Redundancy Check (32-bit)
A CRC-checksum is used to be sure, the data hasn't changed or is false. To create a CRC-checksum, initialise a check-variable (unsigned short), and set this to zero. Than call for every byte in the file (e.g.) the procedure updateCRC32 with this check-variable as the first parameter, and the byte as the second. At the end, the check-variable contains the CRC-checksum.
implemented by Michael Neumann, 14.06.1998
References CRC32_table.