Lines Matching refs:MemoryStream
83 MemoryStream memoryStream = new MemoryStream(); in AssertReadVarint()
107 …ws<InvalidProtocolBufferException>(() => CodedInputStream.ReadRawVarint32(new MemoryStream(data))); in AssertReadVarintFailure()
271 MemoryStream ms = new MemoryStream(); in ReadMaliciouslyLargeBlob()
323 …CodedInputStream input = CodedInputStream.CreateWithLimits(new MemoryStream(data64.ToByteArray()),… in MaliciousRecursion()
332 … MemoryStream ms = new MemoryStream(SampleMessages.CreateFullTestAllTypes().ToByteArray()); in SizeLimit()
345 MemoryStream ms = new MemoryStream(); in ReadInvalidUtf8()
367 private sealed class SmallBlockInputStream : MemoryStream
396 using (var ms = new MemoryStream()) in TestSlowPathAvoidance()
436 var stream = new MemoryStream(); in SkipGroup()
480 var stream = new MemoryStream(); in SkipGroup_WrongEndGroupTag()
507 var stream = new MemoryStream(); in RogueEndGroupTag()
521 var stream = new MemoryStream(); in EndOfStreamReachedWhileSkippingGroup()
539 var stream = new MemoryStream(); in RecursionLimitAppliedWhileSkippingGroup()
571 var stream = new MemoryStream(); in CreateWithLimits_InvalidLimits()
579 var memoryStream = new MemoryStream(); in Dispose_DisposesUnderlyingStream()
590 var memoryStream = new MemoryStream(); in Dispose_WithLeaveOpen()