Loading...
Searching...
No Matches
store_sum.h
Go to the documentation of this file.
1
12#pragma once
13#include <stddef.h>
14#include <stdint.h>
15
20
28#define STORE_READING_SIZE(state, stamp) \
29 ((size_t)((const uint8_t *)&(state).stamp - (const uint8_t *)&(state)))
30
41uint32_t store_sum(const void *bytes, size_t size);
42
uint32_t store_sum(const void *bytes, size_t size)
Sums a run of bytes, so two readings can be compared without keeping both.
Definition store_sum.c:9