/external/cronet/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/ |
D | CodedInputStreamTest.cs | 215 public void DecodeZigZag64() in DecodeZigZag64() method in Google.Protobuf.CodedInputStreamTest 217 Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag64(0)); in DecodeZigZag64() 218 Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag64(1)); in DecodeZigZag64() 219 Assert.AreEqual(1, ParsingPrimitives.DecodeZigZag64(2)); in DecodeZigZag64() 220 Assert.AreEqual(-2, ParsingPrimitives.DecodeZigZag64(3)); in DecodeZigZag64() 221 … Assert.AreEqual(0x000000003FFFFFFFL, ParsingPrimitives.DecodeZigZag64(0x000000007FFFFFFEL)); in DecodeZigZag64() 222 …Assert.AreEqual(unchecked((long) 0xFFFFFFFFC0000000L), ParsingPrimitives.DecodeZigZag64(0x00000000… in DecodeZigZag64() 223 … Assert.AreEqual(0x000000007FFFFFFFL, ParsingPrimitives.DecodeZigZag64(0x00000000FFFFFFFEL)); in DecodeZigZag64() 224 …Assert.AreEqual(unchecked((long) 0xFFFFFFFF80000000L), ParsingPrimitives.DecodeZigZag64(0x00000000… in DecodeZigZag64() 225 … Assert.AreEqual(0x7FFFFFFFFFFFFFFFL, ParsingPrimitives.DecodeZigZag64(0xFFFFFFFFFFFFFFFEL)); in DecodeZigZag64() [all …]
|
D | CodedOutputStreamTest.cs | 260 … Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(0))); in RoundTripZigZag64() 261 … Assert.AreEqual(1, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(1))); in RoundTripZigZag64() 262 … Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(-1))); in RoundTripZigZag64() 263 … Assert.AreEqual(14927, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(14927))); in RoundTripZigZag64() 264 … Assert.AreEqual(-3612, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(-3612))); in RoundTripZigZag64() 267 … ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(856912304801416L))); in RoundTripZigZag64() 269 … ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(-75123905439571256L))); in RoundTripZigZag64()
|
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/ |
D | CodedInputStreamTest.cs | 215 public void DecodeZigZag64() in DecodeZigZag64() method in Google.Protobuf.CodedInputStreamTest 217 Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag64(0)); in DecodeZigZag64() 218 Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag64(1)); in DecodeZigZag64() 219 Assert.AreEqual(1, ParsingPrimitives.DecodeZigZag64(2)); in DecodeZigZag64() 220 Assert.AreEqual(-2, ParsingPrimitives.DecodeZigZag64(3)); in DecodeZigZag64() 221 … Assert.AreEqual(0x000000003FFFFFFFL, ParsingPrimitives.DecodeZigZag64(0x000000007FFFFFFEL)); in DecodeZigZag64() 222 …Assert.AreEqual(unchecked((long) 0xFFFFFFFFC0000000L), ParsingPrimitives.DecodeZigZag64(0x00000000… in DecodeZigZag64() 223 … Assert.AreEqual(0x000000007FFFFFFFL, ParsingPrimitives.DecodeZigZag64(0x00000000FFFFFFFEL)); in DecodeZigZag64() 224 …Assert.AreEqual(unchecked((long) 0xFFFFFFFF80000000L), ParsingPrimitives.DecodeZigZag64(0x00000000… in DecodeZigZag64() 225 … Assert.AreEqual(0x7FFFFFFFFFFFFFFFL, ParsingPrimitives.DecodeZigZag64(0xFFFFFFFFFFFFFFFEL)); in DecodeZigZag64() [all …]
|
D | CodedOutputStreamTest.cs | 260 … Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(0))); in RoundTripZigZag64() 261 … Assert.AreEqual(1, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(1))); in RoundTripZigZag64() 262 … Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(-1))); in RoundTripZigZag64() 263 … Assert.AreEqual(14927, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(14927))); in RoundTripZigZag64() 264 … Assert.AreEqual(-3612, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(-3612))); in RoundTripZigZag64() 267 … ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(856912304801416L))); in RoundTripZigZag64() 269 … ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(-75123905439571256L))); in RoundTripZigZag64()
|
/external/protobuf/csharp/src/Google.Protobuf.Test/ |
D | CodedInputStreamTest.cs | 305 public void DecodeZigZag64() in DecodeZigZag64() method in Google.Protobuf.CodedInputStreamTest 307 Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag64(0)); in DecodeZigZag64() 308 Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag64(1)); in DecodeZigZag64() 309 Assert.AreEqual(1, ParsingPrimitives.DecodeZigZag64(2)); in DecodeZigZag64() 310 Assert.AreEqual(-2, ParsingPrimitives.DecodeZigZag64(3)); in DecodeZigZag64() 311 … Assert.AreEqual(0x000000003FFFFFFFL, ParsingPrimitives.DecodeZigZag64(0x000000007FFFFFFEL)); in DecodeZigZag64() 312 …Assert.AreEqual(unchecked((long) 0xFFFFFFFFC0000000L), ParsingPrimitives.DecodeZigZag64(0x00000000… in DecodeZigZag64() 313 … Assert.AreEqual(0x000000007FFFFFFFL, ParsingPrimitives.DecodeZigZag64(0x00000000FFFFFFFEL)); in DecodeZigZag64() 314 …Assert.AreEqual(unchecked((long) 0xFFFFFFFF80000000L), ParsingPrimitives.DecodeZigZag64(0x00000000… in DecodeZigZag64() 315 … Assert.AreEqual(0x7FFFFFFFFFFFFFFFL, ParsingPrimitives.DecodeZigZag64(0xFFFFFFFFFFFFFFFEL)); in DecodeZigZag64() [all …]
|
D | CodedOutputStreamTest.cs | 355 … Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(0))); in RoundTripZigZag64() 356 … Assert.AreEqual(1, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(1))); in RoundTripZigZag64() 357 … Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(-1))); in RoundTripZigZag64() 358 … Assert.AreEqual(14927, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(14927))); in RoundTripZigZag64() 359 … Assert.AreEqual(-3612, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(-3612))); in RoundTripZigZag64() 362 … ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(856912304801416L))); in RoundTripZigZag64() 364 … ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(-75123905439571256L))); in RoundTripZigZag64()
|
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Test/ |
D | CodedInputStreamTest.cs | 305 public void DecodeZigZag64() in DecodeZigZag64() method in Google.Protobuf.CodedInputStreamTest 307 Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag64(0)); in DecodeZigZag64() 308 Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag64(1)); in DecodeZigZag64() 309 Assert.AreEqual(1, ParsingPrimitives.DecodeZigZag64(2)); in DecodeZigZag64() 310 Assert.AreEqual(-2, ParsingPrimitives.DecodeZigZag64(3)); in DecodeZigZag64() 311 … Assert.AreEqual(0x000000003FFFFFFFL, ParsingPrimitives.DecodeZigZag64(0x000000007FFFFFFEL)); in DecodeZigZag64() 312 …Assert.AreEqual(unchecked((long) 0xFFFFFFFFC0000000L), ParsingPrimitives.DecodeZigZag64(0x00000000… in DecodeZigZag64() 313 … Assert.AreEqual(0x000000007FFFFFFFL, ParsingPrimitives.DecodeZigZag64(0x00000000FFFFFFFEL)); in DecodeZigZag64() 314 …Assert.AreEqual(unchecked((long) 0xFFFFFFFF80000000L), ParsingPrimitives.DecodeZigZag64(0x00000000… in DecodeZigZag64() 315 … Assert.AreEqual(0x7FFFFFFFFFFFFFFFL, ParsingPrimitives.DecodeZigZag64(0xFFFFFFFFFFFFFFFEL)); in DecodeZigZag64() [all …]
|
D | CodedOutputStreamTest.cs | 355 … Assert.AreEqual(0, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(0))); in RoundTripZigZag64() 356 … Assert.AreEqual(1, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(1))); in RoundTripZigZag64() 357 … Assert.AreEqual(-1, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(-1))); in RoundTripZigZag64() 358 … Assert.AreEqual(14927, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(14927))); in RoundTripZigZag64() 359 … Assert.AreEqual(-3612, ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(-3612))); in RoundTripZigZag64() 362 … ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(856912304801416L))); in RoundTripZigZag64() 364 … ParsingPrimitives.DecodeZigZag64(WritingPrimitives.EncodeZigZag64(-75123905439571256L))); in RoundTripZigZag64()
|
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf/ |
D | ParseContext.cs | 322 …return ParsingPrimitives.DecodeZigZag64(ParsingPrimitives.ParseRawVarint64(ref buffer, ref state)); in ReadSInt64()
|
D | CodedInputStream.cs | 520 return ParsingPrimitives.DecodeZigZag64(ReadRawVarint64()); in ReadSInt64()
|
D | ParsingPrimitives.cs | 759 public static long DecodeZigZag64(ulong n) in DecodeZigZag64() method in Google.Protobuf.ParsingPrimitives
|
/external/protobuf/csharp/src/Google.Protobuf/ |
D | ParseContext.cs | 322 …return ParsingPrimitives.DecodeZigZag64(ParsingPrimitives.ParseRawVarint64(ref buffer, ref state)); in ReadSInt64()
|
D | CodedInputStream.cs | 520 return ParsingPrimitives.DecodeZigZag64(ReadRawVarint64()); in ReadSInt64()
|
D | ParsingPrimitives.cs | 759 public static long DecodeZigZag64(ulong n) in DecodeZigZag64() method in Google.Protobuf.ParsingPrimitives
|