Loading...
Searching...
No Matches
varint.h
1#pragma once
2#include <stdint.h>
3#include <stdlib.h>
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
15size_t varint_uint32_pack(uint32_t value, uint8_t* output);
16
17size_t varint_uint32_unpack(uint32_t* value, const uint8_t* input, size_t input_size);
18
19size_t varint_uint32_length(uint32_t value);
20
27size_t varint_int32_pack(int32_t value, uint8_t* output);
28
29size_t varint_int32_unpack(int32_t* value, const uint8_t* input, size_t input_size);
30
31size_t varint_int32_length(int32_t value);
32
33#ifdef __cplusplus
34}
35#endif