summaryrefslogtreecommitdiff
path: root/src/varint.h
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-05-25 13:59:21 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-05-25 14:05:28 +0200
commit52049f3d0a61e93879a8c783f2ac8225d9322905 (patch)
treecc1e677dc72bf76069d92dacf3e6baca91719c98 /src/varint.h
parent46a635499b56969dfd38132ab5062afd4ee7b1cc (diff)
downloadcmumble-52049f3d0a61e93879a8c783f2ac8225d9322905.tar.gz
cmumble-52049f3d0a61e93879a8c783f2ac8225d9322905.tar.bz2
cmumble-52049f3d0a61e93879a8c783f2ac8225d9322905.zip
Talk!
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