Searched refs:ZigZagEncodedSize (Results 1 – 4 of 4) sorted by relevance
/external/pigweed/pw_varint/ |
D | varint_test.cc | 1039 TEST(Varint, ZigZagEncodedSize) { in TEST() argument 1040 EXPECT_EQ(ZigZagEncodedSize(int64_t(0)), 1u); in TEST() 1041 EXPECT_EQ(ZigZagEncodedSize(int64_t(-1)), 1u); in TEST() 1042 EXPECT_EQ(ZigZagEncodedSize(int64_t(1)), 1u); in TEST() 1043 EXPECT_EQ(ZigZagEncodedSize(int64_t(-64)), 1u); in TEST() 1044 EXPECT_EQ(ZigZagEncodedSize(int64_t(-65)), 2u); in TEST() 1045 EXPECT_EQ(ZigZagEncodedSize(int64_t(63)), 1u); in TEST() 1046 EXPECT_EQ(ZigZagEncodedSize(int64_t(64)), 2u); in TEST() 1047 EXPECT_EQ(ZigZagEncodedSize(std::numeric_limits<int8_t>::min()), 2u); in TEST() 1048 EXPECT_EQ(ZigZagEncodedSize(std::numeric_limits<int8_t>::max()), 2u); in TEST() [all …]
|
D | varint.cc | 159 return ZigZagEncodedSize(integer); in pw_varint_ZigZagEncodedSize()
|
D | docs.rst | 27 .. cpp:function:: size_t ZigZagEncodedSize(int64_t integer)
|
/external/pigweed/pw_varint/public/pw_varint/ |
D | varint.h | 196 constexpr size_t ZigZagEncodedSize(int64_t integer) { in ZigZagEncodedSize() function
|