diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-05-25 13:59:21 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-05-25 14:05:28 +0200 |
commit | 52049f3d0a61e93879a8c783f2ac8225d9322905 (patch) | |
tree | cc1e677dc72bf76069d92dacf3e6baca91719c98 /src/varint.h | |
parent | 46a635499b56969dfd38132ab5062afd4ee7b1cc (diff) | |
download | cmumble-52049f3d0a61e93879a8c783f2ac8225d9322905.tar.gz cmumble-52049f3d0a61e93879a8c783f2ac8225d9322905.tar.bz2 cmumble-52049f3d0a61e93879a8c783f2ac8225d9322905.zip |
Talk!
Diffstat (limited to 'src/varint.h')
-rw-r--r-- | src/varint.h | 12 |
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 |