• Home
  • Raw
  • Download

Lines Matching refs:CodedInputStream

62             CodedInputStream input = new CodedInputStream(data);  in AssertReadVarint()
65 input = new CodedInputStream(data); in AssertReadVarint()
72 input = new CodedInputStream(new SmallBlockInputStream(data, bufferSize)); in AssertReadVarint()
75 input = new CodedInputStream(new SmallBlockInputStream(data, bufferSize)); in AssertReadVarint()
87 Assert.AreEqual((uint) value, CodedInputStream.ReadRawVarint32(memoryStream)); in AssertReadVarint()
98 CodedInputStream input = new CodedInputStream(data); in AssertReadVarintFailure()
102 input = new CodedInputStream(data); in AssertReadVarintFailure()
107 …exception = Assert.Throws<InvalidProtocolBufferException>(() => CodedInputStream.ReadRawVarint32(n… in AssertReadVarintFailure()
155 CodedInputStream input = new CodedInputStream(data); in AssertReadLittleEndian32()
162 input = new CodedInputStream( in AssertReadLittleEndian32()
175 CodedInputStream input = new CodedInputStream(data); in AssertReadLittleEndian64()
182 input = new CodedInputStream( in AssertReadLittleEndian64()
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()
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()
226 …Assert.AreEqual(unchecked((long) 0x8000000000000000L), CodedInputStream.DecodeZigZag64(0xFFFFFFFFF… in DecodeZigZag64()
281 CodedInputStream input = new CodedInputStream(ms); in ReadMaliciouslyLargeBlob()
323CodedInputStream input = CodedInputStream.CreateWithLimits(new MemoryStream(data64.ToByteArray()),… in MaliciousRecursion()
333 CodedInputStream input = CodedInputStream.CreateWithLimits(ms, 16, 100); in SizeLimit()
355 CodedInputStream input = new CodedInputStream(ms); in ReadInvalidUtf8()
387 CodedInputStream input = new CodedInputStream(bytes); in TestNegativeEnum()
406 CodedInputStream input = new CodedInputStream(ms, new byte[ms.Length / 2], 0, 0); in TestSlowPathAvoidance()
421 var input = new CodedInputStream(new byte[] { 0 }); in Tag0Throws()
463 var input = new CodedInputStream(stream); in SkipGroup()
494 var input = new CodedInputStream(stream); in SkipGroup_WrongEndGroupTag()
513 var input = new CodedInputStream(stream); in RogueEndGroupTag()
531 var input = new CodedInputStream(stream); in EndOfStreamReachedWhileSkippingGroup()
541 for (int i = 0; i < CodedInputStream.DefaultRecursionLimit + 1; i++) in RecursionLimitAppliedWhileSkippingGroup()
545 for (int i = 0; i < CodedInputStream.DefaultRecursionLimit + 1; i++) in RecursionLimitAppliedWhileSkippingGroup()
553 var input = new CodedInputStream(stream); in RecursionLimitAppliedWhileSkippingGroup()
561 Assert.Throws<ArgumentNullException>(() => new CodedInputStream((byte[]) null)); in Construction_Invalid()
562 Assert.Throws<ArgumentNullException>(() => new CodedInputStream(null, 0, 0)); in Construction_Invalid()
563 Assert.Throws<ArgumentNullException>(() => new CodedInputStream((Stream) null)); in Construction_Invalid()
564 … Assert.Throws<ArgumentOutOfRangeException>(() => new CodedInputStream(new byte[10], 100, 0)); in Construction_Invalid()
565 … Assert.Throws<ArgumentOutOfRangeException>(() => new CodedInputStream(new byte[10], 5, 10)); in Construction_Invalid()
572 … Assert.Throws<ArgumentOutOfRangeException>(() => CodedInputStream.CreateWithLimits(stream, 0, 1)); in CreateWithLimits_InvalidLimits()
573 … Assert.Throws<ArgumentOutOfRangeException>(() => CodedInputStream.CreateWithLimits(stream, 1, 0)); in CreateWithLimits_InvalidLimits()
581 using (var cis = new CodedInputStream(memoryStream)) in Dispose_DisposesUnderlyingStream()
592 using (var cis = new CodedInputStream(memoryStream, true)) in Dispose_WithLeaveOpen()