protozero
Minimalistic protocol buffer decoder and encoder in C++.
|
Contains low-level varint and zigzag encoding and decoding functions. More...
Go to the source code of this file.
Namespaces | |
protozero | |
All parts of the protozero header-only library are in this namespace. | |
Functions | |
uint64_t | protozero::decode_varint (const char **data, const char *end) |
void | protozero::skip_varint (const char **data, const char *end) |
template<typename T > | |
int | protozero::write_varint (T data, uint64_t value) |
constexpr uint32_t | protozero::encode_zigzag32 (int32_t value) noexcept |
constexpr uint64_t | protozero::encode_zigzag64 (int64_t value) noexcept |
constexpr int32_t | protozero::decode_zigzag32 (uint32_t value) noexcept |
constexpr int64_t | protozero::decode_zigzag64 (uint64_t value) noexcept |
Variables | |
constexpr const int8_t | protozero::max_varint_length = sizeof(uint64_t) * 8 / 7 + 1 |
Contains low-level varint and zigzag encoding and decoding functions.