summaryrefslogtreecommitdiff
path: root/src/varint.h
blob: 49b79758f276c3d97610ca8d31640d58343ea7d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
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