table of contents
other versions
- trixie 3.2.10+ds-1
- testing 3.2.24+ds-1
- unstable 3.2.26+ds-1
- experimental 3.3.2+git20251029~d9ca045+ds-1
| SDL_crc32(3) | SDL3 FUNCTIONS | SDL_crc32(3) |
NAME¶
SDL_crc32 - Calculate a CRC-32 value.
SYNOPSIS¶
#include <SDL3/SDL_stdinc.h>
Uint32 SDL_crc32(Uint32 crc, const void *data, size_t len);
DESCRIPTION¶
https://en.wikipedia.org/wiki/Cyclic_redundancy_check
This function can be called multiple times, to stream data to be checksummed in blocks. Each call must provide the previous CRC-32 return value to be updated with the next block. The first call to this function for a set of blocks should pass in a zero CRC value.
FUNCTION PARAMETERS¶
RETURN VALUE¶
Returns a CRC-32 checksum value of all blocks in the data set.
THREAD SAFETY¶
It is safe to call this function from any thread.
AVAILABILITY¶
This function is available since SDL 3.2.0.
| SDL 3.2.26 | Simple Directmedia Layer |