summaryrefslogtreecommitdiff
path: root/src/varint.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/varint.h')
-rw-r--r--src/varint.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/varint.h b/src/varint.h
new file mode 100644
index 0000000..49b7975
--- /dev/null
+++ b/src/varint.h
@@ -0,0 +1,12 @@
+#ifndef _VARINT_H_
+#define _VARINT_H_
+
+#include <stdint.h>
+
+void
+encode_varint(uint8_t *data, uint32_t *write, int64_t value, uint32_t left);
+
+int64_t
+decode_varint(uint8_t *data, uint32_t *read, uint32_t left);
+
+#endif