Searched refs:ZigZagEncode (Results 1 – 7 of 7) sorted by relevance
/external/perfetto/src/protozero/ |
D | proto_utils_unittest.cc | 96 EXPECT_EQ(0u, ZigZagEncode(0)); in TEST() 97 EXPECT_EQ(1u, ZigZagEncode(-1)); in TEST() 98 EXPECT_EQ(2u, ZigZagEncode(1)); in TEST() 99 EXPECT_EQ(3u, ZigZagEncode(-2)); in TEST() 100 EXPECT_EQ(4294967293u, ZigZagEncode(-2147483647)); in TEST() 101 EXPECT_EQ(4294967294u, ZigZagEncode(2147483647)); in TEST() 103 ZigZagEncode(std::numeric_limits<int32_t>::min())); in TEST() 105 ZigZagEncode(std::numeric_limits<int64_t>::min())); in TEST() 107 EXPECT_EQ(0, ZigZagDecode(ZigZagEncode(0))); in TEST() 108 EXPECT_EQ(-1, ZigZagDecode(ZigZagEncode(-1))); in TEST() [all …]
|
/external/protobuf/python/google/protobuf/internal/ |
D | wire_format.py | 100 def ZigZagEncode(value): function 144 return UInt32ByteSize(field_number, ZigZagEncode(int32)) 148 return UInt64ByteSize(field_number, ZigZagEncode(int64))
|
D | wire_format_test.py | 74 Z = wire_format.ZigZagEncode
|
D | encoder.py | 222 _SignedVarintSize, wire_format.ZigZagEncode) 632 wire_format.ZigZagEncode)
|
/external/perfetto/include/perfetto/protozero/ |
D | message.h | 111 AppendVarInt(field_id, proto_utils::ZigZagEncode(value)); in AppendSignedVarInt()
|
D | proto_utils.h | 142 inline typename std::make_unsigned<T>::type ZigZagEncode(T value) { in ZigZagEncode() function
|
/external/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/ |
D | wire_format_test.py | 70 Z = wire_format.ZigZagEncode
|