summaryrefslogtreecommitdiff
path: root/src/storage/codec.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage/codec.h')
-rw-r--r--src/storage/codec.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/storage/codec.h b/src/storage/codec.h
new file mode 100644
index 0000000..aafd174
--- /dev/null
+++ b/src/storage/codec.h
@@ -0,0 +1,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