proxygen
Varint.h File Reference
#include <type_traits>
#include <folly/Conv.h>
#include <folly/Expected.h>
#include <folly/Likely.h>
#include <folly/Portability.h>
#include <folly/Range.h>

Go to the source code of this file.

Namespaces

 folly
 —— Concurrent Priority Queue Implementation ——
 

Enumerations

enum  folly::DecodeVarintError { folly::DecodeVarintError::TooManyBytes = 0, folly::DecodeVarintError::TooFewBytes = 1 }
 

Functions

size_t folly::encodeVarint (uint64_t val, uint8_t *buf)
 
int folly::encodeVarintSize (uint64_t val)
 
template<class T >
uint64_t folly::decodeVarint (Range< T * > &data)
 
template<class T >
Expected< uint64_t, DecodeVarintError > folly::tryDecodeVarint (Range< T * > &data)
 
uint64_t folly::encodeZigZag (int64_t val)
 
int64_t folly::decodeZigZag (uint64_t val)
 

Variables

constexpr size_t folly::kMaxVarintLength32 = 5
 
constexpr size_t folly::kMaxVarintLength64 = 10