summaryrefslogtreecommitdiff
path: root/src/storage/codec.h
blob: aafd174656a035e1fc460b3e0a537ecb9f2bdfd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef TINY_CONVMEM_STORAGE_CODEC_H
#define TINY_CONVMEM_STORAGE_CODEC_H

#include <stddef.h>
#include <stdint.h>

void tiny_codec_put_u32(unsigned char *output, uint32_t value);
void tiny_codec_put_u64(unsigned char *output, uint64_t value);
uint32_t tiny_codec_get_u32(const unsigned char *input);
uint64_t tiny_codec_get_u64(const unsigned char *input);
uint32_t tiny_codec_crc32(const unsigned char *data, size_t length);

#endif