Home
last modified time | relevance | path

Searched refs:MaxValueInBytes (Results 1 – 4 of 4) sorted by relevance

/external/pigweed/pw_varint/
Dvarint_test.cc1065 TEST(Varint, MaxValueInBytes) { in TEST() argument
1066 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 …]
Ddocs.rst31 .. cpp:function:: uint64_t MaxValueInBytes(size_t bytes)
/external/pigweed/pw_varint/public/pw_varint/
Dvarint.h218 constexpr uint64_t MaxValueInBytes(size_t bytes) { in MaxValueInBytes() function
/external/pigweed/pw_protobuf/
Dencoder.cc57 max_size = std::min(varint::MaxValueInBytes(config::kMaxVarintSize), in GetNestedEncoder()