mirror of
https://github.com/gityf/crc.git
synced 2026-08-12 20:32:20 +08:00
crc: Add size_t specific header
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
uint16_t crc16(const unsigned char *buf, size_t len);
|
uint16_t crc16(const unsigned char *buf, size_t len);
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
uint32_t crc32(const unsigned char *s, size_t len);
|
uint32_t crc32(const unsigned char *s, size_t len);
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
uint64_t crc64(const unsigned char *s, size_t l);
|
uint64_t crc64(const unsigned char *s, size_t l);
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
// LSB-first
|
// LSB-first
|
||||||
|
|||||||
Reference in New Issue
Block a user