18#ifndef CS_COMMON_CS_VARINT_H_
19#define CS_COMMON_CS_VARINT_H_
21#if defined(_WIN32) && _MSC_VER < 1700
22typedef unsigned char uint8_t;
23typedef unsigned __int64 uint64_t;
35size_t cs_varint_llen(uint64_t num);
43size_t cs_varint_encode(uint64_t num, uint8_t *buf,
size_t buf_size);
50bool cs_varint_decode(
const uint8_t *buf,
size_t buf_size, uint64_t *num,
53uint64_t cs_varint_decode_unsafe(
const uint8_t *buf,
int *llen);