Embedded SDK
Embedded SDK
varint.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stdint.h> // uint*_t
4 #include <stddef.h> // size_t
5 #include <stdbool.h> // bool
6 
18 uint8_t varint_size(uint64_t value);
19 
35 int varint_read(const uint8_t *in, size_t in_len, uint64_t *value);
36 
52 int varint_write(uint8_t *out, size_t offset, uint64_t value);
unsigned char uint8_t
Definition: usbd_conf.h:53
uint8_t varint_size(uint64_t value)
Definition: varint.c:25
int varint_write(uint8_t *out, size_t offset, uint64_t value)
Definition: varint.c:79
int varint_read(const uint8_t *in, size_t in_len, uint64_t *value)
Definition: varint.c:42