34 #include <type_traits> 66 template<
typename OutputIt,
typename T>
72 *
dest = (
static_cast<char>(
i) & 0x7f) | 0x80;
77 *
dest =
static_cast<char>(
i);
92 template<
int bits,
typename InputIt,
typename T>
94 read_varint(InputIt &&
first, InputIt &&last,
T &write) {
97 for (
int shift = 0;; shift += 7) {
107 if (
byte == 0 && shift != 0) {
111 write |=
static_cast<T>(
byte & 0x7f) << shift;
114 if ((
byte & 0x80) == 0) {
124 template<
typename InputIt,
typename T>
125 int read_varint(InputIt &&
first, InputIt &&last,
T &
i) {
126 return read_varint<std::numeric_limits<T>::digits>(std::forward<InputIt>(
first), std::forward<InputIt>(last),
i);
const uint32_t T[512]
Definition: groestl_tables.h:36
int i
Definition: pymoduletest.py:23
::std::string string
Definition: gtest-port.h:1097
CXA_THROW_INFO_T void(* dest)(void *))
Definition: stack_trace.cpp:91
int type
Definition: superscalar.cpp:50
first
Definition: compare.py:8
static void byte(MDB_val *v)
Definition: mdb_dump.c:79
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1225
unsigned int bits[ATOMS]
Definition: rctTypes.h:152