Searched refs:ZigZagEncode32 (Results 1 – 5 of 5) sorted by relevance
/external/protobuf/src/google/protobuf/ |
D | wire_format_unittest.cc | 750 #define ZigZagEncode32(x) WireFormatLite::ZigZagEncode32(x) in TEST() macro 755 EXPECT_EQ(0u, ZigZagEncode32(0)); in TEST() 756 EXPECT_EQ(1u, ZigZagEncode32(-1)); in TEST() 757 EXPECT_EQ(2u, ZigZagEncode32(1)); in TEST() 758 EXPECT_EQ(3u, ZigZagEncode32(-2)); in TEST() 759 EXPECT_EQ(0x7FFFFFFEu, ZigZagEncode32(0x3FFFFFFF)); in TEST() 760 EXPECT_EQ(0x7FFFFFFFu, ZigZagEncode32(0xC0000000)); in TEST() 761 EXPECT_EQ(0xFFFFFFFEu, ZigZagEncode32(0x7FFFFFFF)); in TEST() 762 EXPECT_EQ(0xFFFFFFFFu, ZigZagEncode32(0x80000000)); in TEST() 797 EXPECT_EQ(0, ZigZagDecode32(ZigZagEncode32(0))); in TEST() [all …]
|
D | wire_format_lite.h | 241 static uint32 ZigZagEncode32(int32 n); 853 inline uint32 WireFormatLite::ZigZagEncode32(int32 n) { in ZigZagEncode32() function 1295 output->WriteVarint32(ZigZagEncode32(value)); in WriteSInt32NoTag() 1381 return io::CodedOutputStream::WriteVarint32ToArray(ZigZagEncode32(value), in WriteSInt32NoTagToArray() 1738 return io::CodedOutputStream::VarintSize32(ZigZagEncode32(value)); in SInt32Size()
|
D | wire_format_lite.cc | 631 x = WireFormatLite::ZigZagEncode32(x); in VarintSize()
|
D | descriptor.cc | 7063 number, internal::WireFormatLite::ZigZagEncode32(value)); in SetInt32()
|
/external/protobuf/conformance/ |
D | binary_json_conformance_suite.cc | 145 string zz32(int32_t x) { return varint(WireFormatLite::ZigZagEncode32(x)); } in zz32()
|