folly::decodeVarint

Decode a value from a given buffer, advances data past the returned value. Throws on error.

Synopsis

Declared in <folly/Varint.h>

template<class T>
uint64_t
decodeVarint(Range<T*>& data);

Return Value

The decoded value.

Parameters

NameDescription
dataThe range to read from; advanced past the decoded value.