Searched refs:MaxValueInBytes (Results 1 – 4 of 4) sorted by relevance
1065 TEST(Varint, MaxValueInBytes) { in TEST() argument1066 static_assert(MaxValueInBytes(0) == 0); in TEST()1067 static_assert(MaxValueInBytes(1) == 0x7f); in TEST()1068 static_assert(MaxValueInBytes(2) == 0x3fff); in TEST()1069 static_assert(MaxValueInBytes(3) == 0x1fffff); in TEST()1070 static_assert(MaxValueInBytes(4) == 0x0fffffff); in TEST()1071 static_assert(MaxValueInBytes(5) == CalculateMaxValueInBytes(5)); in TEST()1072 static_assert(MaxValueInBytes(6) == CalculateMaxValueInBytes(6)); in TEST()1073 static_assert(MaxValueInBytes(7) == CalculateMaxValueInBytes(7)); in TEST()1074 static_assert(MaxValueInBytes(8) == CalculateMaxValueInBytes(8)); in TEST()[all …]
31 .. cpp:function:: uint64_t MaxValueInBytes(size_t bytes)
218 constexpr uint64_t MaxValueInBytes(size_t bytes) { in MaxValueInBytes() function
57 max_size = std::min(varint::MaxValueInBytes(config::kMaxVarintSize), in GetNestedEncoder()