2023-01-12 15:33:09 +01:00
|
|
|
/*
|
|
|
|
* No copyright is claimed. This code is in the public domain; do with it what
|
|
|
|
* you wish.
|
|
|
|
*/
|
2022-11-21 09:50:07 +01:00
|
|
|
#ifndef UL_CRC32C_H
|
|
|
|
#define UL_CRC32C_H
|
2017-11-15 23:01:38 -06:00
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
extern uint32_t crc32c(uint32_t crc, const void *buf, size_t size);
|
2023-04-14 18:07:29 -05:00
|
|
|
extern uint32_t ul_crc32c_exclude_offset(uint32_t crc, const unsigned char *buf,
|
|
|
|
size_t size, size_t exclude_off,
|
|
|
|
size_t exclude_len);
|
|
|
|
|
2017-11-15 23:01:38 -06:00
|
|
|
|
2022-11-21 09:50:07 +01:00
|
|
|
#endif /* UL_CRC32C_H */
|