Lines Matching refs:EncodeZigZag64
225 public void EncodeZigZag64() in EncodeZigZag64() method in Google.Protobuf.CodedOutputStreamTest
227 Assert.AreEqual(0u, CodedOutputStream.EncodeZigZag64(0)); in EncodeZigZag64()
228 Assert.AreEqual(1u, CodedOutputStream.EncodeZigZag64(-1)); in EncodeZigZag64()
229 Assert.AreEqual(2u, CodedOutputStream.EncodeZigZag64(1)); in EncodeZigZag64()
230 Assert.AreEqual(3u, CodedOutputStream.EncodeZigZag64(-2)); in EncodeZigZag64()
232 … CodedOutputStream.EncodeZigZag64(unchecked((long) 0x000000003FFFFFFFUL))); in EncodeZigZag64()
234 … CodedOutputStream.EncodeZigZag64(unchecked((long) 0xFFFFFFFFC0000000UL))); in EncodeZigZag64()
236 … CodedOutputStream.EncodeZigZag64(unchecked((long) 0x000000007FFFFFFFUL))); in EncodeZigZag64()
238 … CodedOutputStream.EncodeZigZag64(unchecked((long) 0xFFFFFFFF80000000UL))); in EncodeZigZag64()
240 … CodedOutputStream.EncodeZigZag64(unchecked((long) 0x7FFFFFFFFFFFFFFFUL))); in EncodeZigZag64()
242 … CodedOutputStream.EncodeZigZag64(unchecked((long) 0x8000000000000000UL))); in EncodeZigZag64()
260 … 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()