31 if (value <= UINT16_MAX) {
35 if (value <= UINT32_MAX) {
74 *value = (uint64_t) prefix;
uint32_t read_u32_le(const uint8_t *ptr, size_t offset)
uint64_t read_u64_le(const uint8_t *ptr, size_t offset)
uint16_t read_u16_le(const uint8_t *ptr, size_t offset)
uint8_t varint_size(uint64_t value)
int varint_write(uint8_t *out, size_t offset, uint64_t value)
int varint_read(const uint8_t *in, size_t in_len, uint64_t *value)
void write_u16_le(uint8_t *ptr, size_t offset, uint16_t value)
void write_u64_le(uint8_t *ptr, size_t offset, uint64_t value)
void write_u32_le(uint8_t *ptr, size_t offset, uint32_t value)