Home
last modified time | relevance | path

Searched refs:ZigZagEncode32 (Results 1 – 5 of 5) sorted by relevance

/external/protobuf/src/google/protobuf/
Dwire_format_unittest.cc750 #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 …]
Dwire_format_lite.h241 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()
Dwire_format_lite.cc631 x = WireFormatLite::ZigZagEncode32(x); in VarintSize()
Ddescriptor.cc7063 number, internal::WireFormatLite::ZigZagEncode32(value)); in SetInt32()
/external/protobuf/conformance/
Dbinary_json_conformance_suite.cc145 string zz32(int32_t x) { return varint(WireFormatLite::ZigZagEncode32(x)); } in zz32()