Lines Matching refs:EncodeZigZag32
212 public void EncodeZigZag32() in EncodeZigZag32() method in Google.Protobuf.CodedOutputStreamTest
214 Assert.AreEqual(0u, CodedOutputStream.EncodeZigZag32(0)); in EncodeZigZag32()
215 Assert.AreEqual(1u, CodedOutputStream.EncodeZigZag32(-1)); in EncodeZigZag32()
216 Assert.AreEqual(2u, CodedOutputStream.EncodeZigZag32(1)); in EncodeZigZag32()
217 Assert.AreEqual(3u, CodedOutputStream.EncodeZigZag32(-2)); in EncodeZigZag32()
218 Assert.AreEqual(0x7FFFFFFEu, CodedOutputStream.EncodeZigZag32(0x3FFFFFFF)); in EncodeZigZag32()
219 … Assert.AreEqual(0x7FFFFFFFu, CodedOutputStream.EncodeZigZag32(unchecked((int) 0xC0000000))); in EncodeZigZag32()
220 Assert.AreEqual(0xFFFFFFFEu, CodedOutputStream.EncodeZigZag32(0x7FFFFFFF)); in EncodeZigZag32()
221 … Assert.AreEqual(0xFFFFFFFFu, CodedOutputStream.EncodeZigZag32(unchecked((int) 0x80000000))); in EncodeZigZag32()
250 … Assert.AreEqual(0, CodedInputStream.DecodeZigZag32(CodedOutputStream.EncodeZigZag32(0))); in RoundTripZigZag32()
251 … Assert.AreEqual(1, CodedInputStream.DecodeZigZag32(CodedOutputStream.EncodeZigZag32(1))); in RoundTripZigZag32()
252 … Assert.AreEqual(-1, CodedInputStream.DecodeZigZag32(CodedOutputStream.EncodeZigZag32(-1))); in RoundTripZigZag32()
253 … Assert.AreEqual(14927, CodedInputStream.DecodeZigZag32(CodedOutputStream.EncodeZigZag32(14927))); in RoundTripZigZag32()
254 … Assert.AreEqual(-3612, CodedInputStream.DecodeZigZag32(CodedOutputStream.EncodeZigZag32(-3612))); in RoundTripZigZag32()