Home
last modified time | relevance | path

Searched refs:DecodeZigZag64 (Results 1 – 3 of 3) sorted by relevance

/external/protobuf/csharp/src/Google.Protobuf.Test/
DCodedInputStreamTest.cs215 public void DecodeZigZag64() in DecodeZigZag64() method in Google.Protobuf.CodedInputStreamTest
217 Assert.AreEqual(0, CodedInputStream.DecodeZigZag64(0)); in DecodeZigZag64()
218 Assert.AreEqual(-1, CodedInputStream.DecodeZigZag64(1)); in DecodeZigZag64()
219 Assert.AreEqual(1, CodedInputStream.DecodeZigZag64(2)); in DecodeZigZag64()
220 Assert.AreEqual(-2, CodedInputStream.DecodeZigZag64(3)); in DecodeZigZag64()
221 … Assert.AreEqual(0x000000003FFFFFFFL, CodedInputStream.DecodeZigZag64(0x000000007FFFFFFEL)); in DecodeZigZag64()
222 …Assert.AreEqual(unchecked((long) 0xFFFFFFFFC0000000L), CodedInputStream.DecodeZigZag64(0x000000007… in DecodeZigZag64()
223 … Assert.AreEqual(0x000000007FFFFFFFL, CodedInputStream.DecodeZigZag64(0x00000000FFFFFFFEL)); in DecodeZigZag64()
224 …Assert.AreEqual(unchecked((long) 0xFFFFFFFF80000000L), CodedInputStream.DecodeZigZag64(0x00000000F… in DecodeZigZag64()
225 … Assert.AreEqual(0x7FFFFFFFFFFFFFFFL, CodedInputStream.DecodeZigZag64(0xFFFFFFFFFFFFFFFEL)); in DecodeZigZag64()
[all …]
DCodedOutputStreamTest.cs260 … Assert.AreEqual(0, CodedInputStream.DecodeZigZag64(CodedOutputStream.EncodeZigZag64(0))); in RoundTripZigZag64()
261 … Assert.AreEqual(1, CodedInputStream.DecodeZigZag64(CodedOutputStream.EncodeZigZag64(1))); in RoundTripZigZag64()
262 … Assert.AreEqual(-1, CodedInputStream.DecodeZigZag64(CodedOutputStream.EncodeZigZag64(-1))); in RoundTripZigZag64()
263 … Assert.AreEqual(14927, CodedInputStream.DecodeZigZag64(CodedOutputStream.EncodeZigZag64(14927))); in RoundTripZigZag64()
264 … Assert.AreEqual(-3612, CodedInputStream.DecodeZigZag64(CodedOutputStream.EncodeZigZag64(-3612))); in RoundTripZigZag64()
267 … CodedInputStream.DecodeZigZag64(CodedOutputStream.EncodeZigZag64(856912304801416L))); in RoundTripZigZag64()
269 … CodedInputStream.DecodeZigZag64(CodedOutputStream.EncodeZigZag64(-75123905439571256L))); in RoundTripZigZag64()
/external/protobuf/csharp/src/Google.Protobuf/
DCodedInputStream.cs654 return DecodeZigZag64(ReadRawVarint64()); in ReadSInt64()
916 internal static long DecodeZigZag64(ulong n) in DecodeZigZag64() method in Google.Protobuf.CodedInputStream