Searched refs:Length64 (Results 1 – 3 of 3) sorted by relevance
/packages/modules/StatsD/lib/libkll/encoding/ |
D | varint_test.cpp | 33 TEST(VarintTest, Length64) { in TEST() argument 34 ASSERT_EQ(Varint::Length64(0), 1); in TEST() 35 ASSERT_EQ(Varint::Length64(1), 1); in TEST() 36 ASSERT_EQ(Varint::Length64(127), 1); in TEST() 37 ASSERT_EQ(Varint::Length64(128), 2); in TEST() 38 ASSERT_EQ(Varint::Length64(16383), 2); in TEST() 39 ASSERT_EQ(Varint::Length64(16384), 3); in TEST() 43 ASSERT_EQ(Varint::Length64(v - 1), Varint_Length64Old(v - 1)); in TEST() 44 ASSERT_EQ(Varint::Length64(v), Varint_Length64Old(v)); in TEST() 45 ASSERT_EQ(Varint::Length64(v + 1), Varint_Length64Old(v + 1)); in TEST() [all …]
|
D | varint.h | 34 static int Length64(uint64_t v); 42 inline int Varint::Length64(uint64_t v) { in Length64() function
|
D | encoder.cpp | 50 assert(Varint::Length64(src) <= kMaxLength); in AppendToString()
|