Loading...
Searching...
No Matches
crc32.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022 ML!PA Consulting GmbH
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
18
19#include <stddef.h>
20#include <stdint.h>
21
22#include "compiler_hints.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
41ACCESS(read_only, 1, 2)
42uint32_t crc32(const void *buf, size_t size);
43
44#ifdef __cplusplus
45}
46#endif
47
Common macros and compiler attributes/pragmas configuration.
#define ACCESS(mode, ptr_idx, size_idx)
Emit an attribute (if supported by the compiler) that declares how a function will access its paramet...
uint32_t crc32(const void *buf, size_t size)
CRC-32 checksum.