Embedded SDK
Embedded SDK
lib_standard_app
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);
uint8_t
unsigned char uint8_t
Definition:
usbd_conf.h:53
varint_size
uint8_t varint_size(uint64_t value)
Definition:
varint.c:25
varint_write
int varint_write(uint8_t *out, size_t offset, uint64_t value)
Definition:
varint.c:79
varint_read
int varint_read(const uint8_t *in, size_t in_len, uint64_t *value)
Definition:
varint.c:42
Generated by
1.9.1