]>
| Commit | Line | Data |
|---|---|---|
| 1 | /* | |
| 2 | * No copyright is claimed. This code is in the public domain; do with | |
| 3 | * it what you wish. | |
| 4 | */ | |
| 5 | #ifndef UL_CRC32C_H | |
| 6 | #define UL_CRC32C_H | |
| 7 | ||
| 8 | #include <sys/types.h> | |
| 9 | #include <stdint.h> | |
| 10 | ||
| 11 | extern uint32_t crc32c(uint32_t crc, const void *buf, size_t size); | |
| 12 | extern uint32_t ul_crc32c_exclude_offset(uint32_t crc, const unsigned char *buf, | |
| 13 | size_t size, size_t exclude_off, | |
| 14 | size_t exclude_len); | |
| 15 | ||
| 16 | ||
| 17 | #endif /* UL_CRC32C_H */ |