Home
last modified time | relevance | path

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

/third_party/protobuf/src/google/protobuf/
Dwire_format_unittest.cc756 #define ZigZagEncode32(x) WireFormatLite::ZigZagEncode32(x) in TEST() macro
761 EXPECT_EQ(0u, ZigZagEncode32(0)); in TEST()
762 EXPECT_EQ(1u, ZigZagEncode32(-1)); in TEST()
763 EXPECT_EQ(2u, ZigZagEncode32(1)); in TEST()
764 EXPECT_EQ(3u, ZigZagEncode32(-2)); in TEST()
765 EXPECT_EQ(0x7FFFFFFEu, ZigZagEncode32(0x3FFFFFFF)); in TEST()
766 EXPECT_EQ(0x7FFFFFFFu, ZigZagEncode32(0xC0000000)); in TEST()
767 EXPECT_EQ(0xFFFFFFFEu, ZigZagEncode32(0x7FFFFFFF)); in TEST()
768 EXPECT_EQ(0xFFFFFFFFu, ZigZagEncode32(0x80000000)); in TEST()
803 EXPECT_EQ(0, ZigZagDecode32(ZigZagEncode32(0))); in TEST()
[all …]
Dwire_format_lite.h242 static uint32 ZigZagEncode32(int32 n);
849 inline uint32 WireFormatLite::ZigZagEncode32(int32 n) { in ZigZagEncode32() function
1293 output->WriteVarint32(ZigZagEncode32(value)); in WriteSInt32NoTag()
1379 return io::CodedOutputStream::WriteVarint32ToArray(ZigZagEncode32(value), in WriteSInt32NoTagToArray()
1740 return io::CodedOutputStream::VarintSize32(ZigZagEncode32(value)); in SInt32Size()
Dwire_format_lite.cc624 x = WireFormatLite::ZigZagEncode32(x); in VarintSize()
Ddescriptor.cc7202 number, internal::WireFormatLite::ZigZagEncode32(value)); in SetInt32()
/third_party/protobuf/src/google/protobuf/io/
Dcoded_stream.h761 return WriteVarintPacked(num, r, size, ptr, ZigZagEncode32); in WriteSInt32Packed()
892 static uint32 ZigZagEncode32(int32 v) { in ZigZagEncode32() function
/third_party/protobuf/conformance/
Dbinary_json_conformance_suite.cc145 string zz32(int32_t x) { return varint(WireFormatLite::ZigZagEncode32(x)); } in zz32()