/external/cronet/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/ |
D | CodedInputStreamTest.cs | 202 public void DecodeZigZag32() in DecodeZigZag32() method in Google.Protobuf.CodedInputStreamTest 204 Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag32(0)); in DecodeZigZag32() 205 Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag32(1)); in DecodeZigZag32() 206 Assert.AreEqual(1, ParsingPrimitives.DecodeZigZag32(2)); in DecodeZigZag32() 207 Assert.AreEqual(-2, ParsingPrimitives.DecodeZigZag32(3)); in DecodeZigZag32() 208 Assert.AreEqual(0x3FFFFFFF, ParsingPrimitives.DecodeZigZag32(0x7FFFFFFE)); in DecodeZigZag32() 209 … Assert.AreEqual(unchecked((int) 0xC0000000), ParsingPrimitives.DecodeZigZag32(0x7FFFFFFF)); in DecodeZigZag32() 210 Assert.AreEqual(0x7FFFFFFF, ParsingPrimitives.DecodeZigZag32(0xFFFFFFFE)); in DecodeZigZag32() 211 … Assert.AreEqual(unchecked((int) 0x80000000), ParsingPrimitives.DecodeZigZag32(0xFFFFFFFF)); in DecodeZigZag32()
|
D | CodedOutputStreamTest.cs | 250 … Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(0))); in RoundTripZigZag32() 251 … Assert.AreEqual(1, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(1))); in RoundTripZigZag32() 252 … Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(-1))); in RoundTripZigZag32() 253 … Assert.AreEqual(14927, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(14927))); in RoundTripZigZag32() 254 … Assert.AreEqual(-3612, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(-3612))); in RoundTripZigZag32()
|
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/ |
D | CodedInputStreamTest.cs | 202 public void DecodeZigZag32() in DecodeZigZag32() method in Google.Protobuf.CodedInputStreamTest 204 Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag32(0)); in DecodeZigZag32() 205 Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag32(1)); in DecodeZigZag32() 206 Assert.AreEqual(1, ParsingPrimitives.DecodeZigZag32(2)); in DecodeZigZag32() 207 Assert.AreEqual(-2, ParsingPrimitives.DecodeZigZag32(3)); in DecodeZigZag32() 208 Assert.AreEqual(0x3FFFFFFF, ParsingPrimitives.DecodeZigZag32(0x7FFFFFFE)); in DecodeZigZag32() 209 … Assert.AreEqual(unchecked((int) 0xC0000000), ParsingPrimitives.DecodeZigZag32(0x7FFFFFFF)); in DecodeZigZag32() 210 Assert.AreEqual(0x7FFFFFFF, ParsingPrimitives.DecodeZigZag32(0xFFFFFFFE)); in DecodeZigZag32() 211 … Assert.AreEqual(unchecked((int) 0x80000000), ParsingPrimitives.DecodeZigZag32(0xFFFFFFFF)); in DecodeZigZag32()
|
D | CodedOutputStreamTest.cs | 250 … Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(0))); in RoundTripZigZag32() 251 … Assert.AreEqual(1, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(1))); in RoundTripZigZag32() 252 … Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(-1))); in RoundTripZigZag32() 253 … Assert.AreEqual(14927, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(14927))); in RoundTripZigZag32() 254 … Assert.AreEqual(-3612, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(-3612))); in RoundTripZigZag32()
|
/external/protobuf/csharp/src/Google.Protobuf.Test/ |
D | CodedInputStreamTest.cs | 292 public void DecodeZigZag32() in DecodeZigZag32() method in Google.Protobuf.CodedInputStreamTest 294 Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag32(0)); in DecodeZigZag32() 295 Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag32(1)); in DecodeZigZag32() 296 Assert.AreEqual(1, ParsingPrimitives.DecodeZigZag32(2)); in DecodeZigZag32() 297 Assert.AreEqual(-2, ParsingPrimitives.DecodeZigZag32(3)); in DecodeZigZag32() 298 Assert.AreEqual(0x3FFFFFFF, ParsingPrimitives.DecodeZigZag32(0x7FFFFFFE)); in DecodeZigZag32() 299 … Assert.AreEqual(unchecked((int) 0xC0000000), ParsingPrimitives.DecodeZigZag32(0x7FFFFFFF)); in DecodeZigZag32() 300 Assert.AreEqual(0x7FFFFFFF, ParsingPrimitives.DecodeZigZag32(0xFFFFFFFE)); in DecodeZigZag32() 301 … Assert.AreEqual(unchecked((int) 0x80000000), ParsingPrimitives.DecodeZigZag32(0xFFFFFFFF)); in DecodeZigZag32()
|
D | CodedOutputStreamTest.cs | 345 … Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(0))); in RoundTripZigZag32() 346 … Assert.AreEqual(1, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(1))); in RoundTripZigZag32() 347 … Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(-1))); in RoundTripZigZag32() 348 … Assert.AreEqual(14927, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(14927))); in RoundTripZigZag32() 349 … Assert.AreEqual(-3612, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(-3612))); in RoundTripZigZag32()
|
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Test/ |
D | CodedInputStreamTest.cs | 292 public void DecodeZigZag32() in DecodeZigZag32() method in Google.Protobuf.CodedInputStreamTest 294 Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag32(0)); in DecodeZigZag32() 295 Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag32(1)); in DecodeZigZag32() 296 Assert.AreEqual(1, ParsingPrimitives.DecodeZigZag32(2)); in DecodeZigZag32() 297 Assert.AreEqual(-2, ParsingPrimitives.DecodeZigZag32(3)); in DecodeZigZag32() 298 Assert.AreEqual(0x3FFFFFFF, ParsingPrimitives.DecodeZigZag32(0x7FFFFFFE)); in DecodeZigZag32() 299 … Assert.AreEqual(unchecked((int) 0xC0000000), ParsingPrimitives.DecodeZigZag32(0x7FFFFFFF)); in DecodeZigZag32() 300 Assert.AreEqual(0x7FFFFFFF, ParsingPrimitives.DecodeZigZag32(0xFFFFFFFE)); in DecodeZigZag32() 301 … Assert.AreEqual(unchecked((int) 0x80000000), ParsingPrimitives.DecodeZigZag32(0xFFFFFFFF)); in DecodeZigZag32()
|
D | CodedOutputStreamTest.cs | 345 … Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(0))); in RoundTripZigZag32() 346 … Assert.AreEqual(1, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(1))); in RoundTripZigZag32() 347 … Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(-1))); in RoundTripZigZag32() 348 … Assert.AreEqual(14927, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(14927))); in RoundTripZigZag32() 349 … Assert.AreEqual(-3612, ParsingPrimitives.DecodeZigZag32(WritingPrimitives.EncodeZigZag32(-3612))); in RoundTripZigZag32()
|
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf/ |
D | ParseContext.cs | 313 …return ParsingPrimitives.DecodeZigZag32(ParsingPrimitives.ParseRawVarint32(ref buffer, ref state)); in ReadSInt32()
|
D | CodedInputStream.cs | 512 return ParsingPrimitives.DecodeZigZag32(ReadRawVarint32()); in ReadSInt32()
|
D | ParsingPrimitives.cs | 745 public static int DecodeZigZag32(uint n) in DecodeZigZag32() method in Google.Protobuf.ParsingPrimitives
|
/external/protobuf/csharp/src/Google.Protobuf/ |
D | ParseContext.cs | 313 …return ParsingPrimitives.DecodeZigZag32(ParsingPrimitives.ParseRawVarint32(ref buffer, ref state)); in ReadSInt32()
|
D | CodedInputStream.cs | 512 return ParsingPrimitives.DecodeZigZag32(ReadRawVarint32()); in ReadSInt32()
|
D | ParsingPrimitives.cs | 745 public static int DecodeZigZag32(uint n) in DecodeZigZag32() method in Google.Protobuf.ParsingPrimitives
|