Searched refs:EncodeZigZag64 (Results 1 – 3 of 3) sorted by relevance
225 public void EncodeZigZag64() in EncodeZigZag64() method in Google.Protobuf.CodedOutputStreamTest227 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()[all …]
216 return ComputeRawVarint64Size(EncodeZigZag64(value)); in ComputeSInt64Size()
368 WriteRawVarint64(EncodeZigZag64(value)); in WriteSInt64()660 internal static ulong EncodeZigZag64(long n) in EncodeZigZag64() method in Google.Protobuf.CodedOutputStream