Searched refs:ZigZagEncode32 (Results 1 – 5 of 5) sorted by relevance
/external/protobuf/src/google/protobuf/ |
D | wire_format_unittest.cc | 669 #define ZigZagEncode32(x) WireFormatLite::ZigZagEncode32(x) in TEST() macro 674 EXPECT_EQ(0u, ZigZagEncode32( 0)); in TEST() 675 EXPECT_EQ(1u, ZigZagEncode32(-1)); in TEST() 676 EXPECT_EQ(2u, ZigZagEncode32( 1)); in TEST() 677 EXPECT_EQ(3u, ZigZagEncode32(-2)); in TEST() 678 EXPECT_EQ(0x7FFFFFFEu, ZigZagEncode32(0x3FFFFFFF)); in TEST() 679 EXPECT_EQ(0x7FFFFFFFu, ZigZagEncode32(0xC0000000)); in TEST() 680 EXPECT_EQ(0xFFFFFFFEu, ZigZagEncode32(0x7FFFFFFF)); in TEST() 681 EXPECT_EQ(0xFFFFFFFFu, ZigZagEncode32(0x80000000)); in TEST() 716 EXPECT_EQ( 0, ZigZagDecode32(ZigZagEncode32( 0))); in TEST() [all …]
|
D | wire_format_lite_inl.h | 540 output->WriteVarint32(ZigZagEncode32(value)); in WriteSInt32NoTag() 627 return io::CodedOutputStream::WriteVarint32ToArray(ZigZagEncode32(value), in WriteSInt32NoTagToArray() 828 return io::CodedOutputStream::VarintSize32(ZigZagEncode32(value)); in SInt32Size()
|
D | wire_format_lite.h | 231 static uint32 ZigZagEncode32(int32 n); 661 inline uint32 WireFormatLite::ZigZagEncode32(int32 n) { in ZigZagEncode32() function
|
D | descriptor.cc | 6175 google::protobuf::internal::WireFormatLite::ZigZagEncode32(value)); in SetInt32()
|
/external/protobuf/conformance/ |
D | conformance_test.cc | 136 string zz32(int32_t x) { return varint(WireFormatLite::ZigZagEncode32(x)); } in zz32()
|