KallistiOS git master
Independent SDK for the Sega Dreamcast
|
API for Cyclic Redundancy Checking More...
Functions | |
uint32 | net_crc32le (const uint8 *data, int size) |
Calculate a "little-endian" CRC-32 over a block of data. | |
uint32 | net_crc32be (const uint8 *data, int size) |
Calculate a "big-endian" CRC-32 over a block of data. | |
uint16 | net_crc16ccitt (const uint8 *data, int size, uint16 start) |
Calculate a CRC16-CCITT over a block of data. | |
API for Cyclic Redundancy Checking
Calculate a CRC16-CCITT over a block of data.
data | The data to calculate over. |
size | The size of the data, in bytes. |
start | The value to start with. This could be a previous return value from this function (if continuing a previous calculation) or some initial seed value (typically 0xFFFF or 0x0000). |
Calculate a "big-endian" CRC-32 over a block of data.
data | The data to calculate over. |
size | The size of the data, in bytes. |