Searched refs:DecodeZigZag32 (Results 1 – 3 of 3) sorted by relevance
/external/protobuf/csharp/src/Google.Protobuf.Test/ |
D | CodedInputStreamTest.cs | 202 public void DecodeZigZag32() in DecodeZigZag32() method in Google.Protobuf.CodedInputStreamTest 204 Assert.AreEqual(0, CodedInputStream.DecodeZigZag32(0)); in DecodeZigZag32() 205 Assert.AreEqual(-1, CodedInputStream.DecodeZigZag32(1)); in DecodeZigZag32() 206 Assert.AreEqual(1, CodedInputStream.DecodeZigZag32(2)); in DecodeZigZag32() 207 Assert.AreEqual(-2, CodedInputStream.DecodeZigZag32(3)); in DecodeZigZag32() 208 Assert.AreEqual(0x3FFFFFFF, CodedInputStream.DecodeZigZag32(0x7FFFFFFE)); in DecodeZigZag32() 209 … Assert.AreEqual(unchecked((int) 0xC0000000), CodedInputStream.DecodeZigZag32(0x7FFFFFFF)); in DecodeZigZag32() 210 Assert.AreEqual(0x7FFFFFFF, CodedInputStream.DecodeZigZag32(0xFFFFFFFE)); in DecodeZigZag32() 211 … Assert.AreEqual(unchecked((int) 0x80000000), CodedInputStream.DecodeZigZag32(0xFFFFFFFF)); in DecodeZigZag32()
|
D | CodedOutputStreamTest.cs | 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()
|
/external/protobuf/csharp/src/Google.Protobuf/ |
D | CodedInputStream.cs | 646 return DecodeZigZag32(ReadRawVarint32()); in ReadSInt32() 902 internal static int DecodeZigZag32(uint n) in DecodeZigZag32() method in Google.Protobuf.CodedInputStream
|