22 types derived from MemoryStream
Microsoft.Arcade.Test.Common (1)
Microsoft.AspNetCore.Http.Connections.Tests (2)
Microsoft.AspNetCore.Http.Tests (1)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (1)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
Microsoft.AspNetCore.TestHost.Tests (1)
Microsoft.AspNetCore.WebUtilities.Tests (2)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.UnitTests (5)
System.Drawing.Common.Tests (1)
System.Net.Requests (1)
System.Private.CoreLib (1)
System.Private.Windows.Core.Tests (1)
WindowsBase.Tests (2)
1953 instantiations of MemoryStream
aspire (1)
Aspire.Azure.Messaging.EventHubs.Tests (2)
Aspire.Azure.Security.KeyVault.Tests (2)
Aspire.Confluent.Kafka.Tests (2)
Aspire.Dashboard (7)
Aspire.Dashboard.Tests (13)
Aspire.Hosting (1)
Aspire.Hosting.Azure.EventHubs (2)
Aspire.Hosting.Azure.ServiceBus (2)
Aspire.Hosting.Azure.Tests (1)
Aspire.Hosting.PostgreSQL (1)
Aspire.Hosting.Tests (53)
Aspire.RabbitMQ.Client.Tests (1)
Aspire.RabbitMQ.Client.v6.Tests (1)
BinaryFormatTests (20)
BuildValidator (4)
ComDisabled.Tests (1)
ConfigurationSchemaGenerator.Tests (1)
Contract.Service.IntegrationTests (1)
csc (3)
dotnet-razorpagegenerator (1)
dotnet-svcutil-lib (19)
dotnet-user-secrets (1)
Extensibility.MessageEncoder.IntegrationTests (4)
FilesWebSite (3)
FormatterWebSite (1)
GenerateDocumentationAndConfigFiles (2)
GetDocument.Insider (1)
HttpStress (1)
IdeBenchmarks (2)
IdentitySample.PasskeyConformance (1)
illink (3)
InMemory.FunctionalTests (13)
InProcessWebSite (2)
Metrics (2)
Metrics.Legacy (2)
Microsoft.Arcade.Common (1)
Microsoft.Arcade.Test.Common (1)
Microsoft.AspNetCore.App.Analyzers.Test (1)
Microsoft.AspNetCore.Authentication (4)
Microsoft.AspNetCore.Authentication.Test (6)
Microsoft.AspNetCore.Authentication.Twitter (2)
Microsoft.AspNetCore.Components.Endpoints (2)
Microsoft.AspNetCore.Components.Endpoints.Tests (19)
Binding\FormDataMapperTests.cs (3)
2011var expected = new FormFileCollection { new FormFile(new MemoryStream(Encoding.UTF8.GetBytes(expectedString)), 0, expectedString.Length, "file", "file.txt") };
2042new FormFile(new MemoryStream(Encoding.UTF8.GetBytes(expectedString1)), 0, expectedString1.Length, "file", "file1.txt"),
2043new FormFile(new MemoryStream(Encoding.UTF8.GetBytes(expectedString2)), 0, expectedString2.Length, "file", "file2.txt")
Microsoft.AspNetCore.Components.Server.Tests (16)
Microsoft.AspNetCore.Components.Web (1)
Microsoft.AspNetCore.Components.Web.Tests (1)
Microsoft.AspNetCore.Components.WebAssembly (1)
Microsoft.AspNetCore.Components.WebAssembly.Tests (4)
Microsoft.AspNetCore.Components.WebView (1)
Microsoft.AspNetCore.Components.WebView.Maui (1)
Microsoft.AspNetCore.Components.WebView.Test (1)
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
Microsoft.AspNetCore.Components.WebView.Wpf (1)
Microsoft.AspNetCore.DataProtection (2)
Microsoft.AspNetCore.DataProtection.Tests (1)
Microsoft.AspNetCore.Diagnostics (2)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Microsoft.AspNetCore.Diagnostics.Tests (2)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (19)
Microsoft.AspNetCore.Hosting (2)
Microsoft.AspNetCore.Hosting.Tests (6)
Microsoft.AspNetCore.Http.Abstractions.Tests (6)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Connections.Tests (47)
Microsoft.AspNetCore.Http.Microbenchmarks (4)
Microsoft.AspNetCore.Http.Results.Tests (88)
ResultsTests.cs (3)
296var stream = new MemoryStream();
1753(() => Results.File(new MemoryStream(), null, null, null, null, false), typeof(FileStreamHttpResult)),
1766(() => Results.Stream(new MemoryStream(), null, null, null, null, false), typeof(FileStreamHttpResult)),
Microsoft.AspNetCore.Http.Tests (9)
Microsoft.AspNetCore.HttpLogging.Tests (18)
Microsoft.AspNetCore.Identity (2)
Microsoft.AspNetCore.Identity.InMemory.Test (1)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.Core.Test (85)
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (19)
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
Microsoft.AspNetCore.Mvc.IntegrationTests (49)
FormFileModelBindingIntegrationTest.cs (4)
554new FormFile(new MemoryStream(), baseStreamOffset: 0, length: 0, name: "file", fileName: "file1"),
555new FormFile(new MemoryStream(), baseStreamOffset: 0, length: 0, name: "file", fileName: "file2"),
556new FormFile(new MemoryStream(), baseStreamOffset: 0, length: 0, name: "file", fileName: "file3"),
1273var memoryStream = new MemoryStream(Encoding.UTF8.GetBytes(data));
TryUpdateModelIntegrationTest.cs (4)
1055new FormFile(new MemoryStream(), baseStreamOffset: 0, length: 0, name: "file", fileName: "file1"),
1056new FormFile(new MemoryStream(), baseStreamOffset: 0, length: 0, name: "file", fileName: "file2"),
1057new FormFile(new MemoryStream(), baseStreamOffset: 0, length: 0, name: "file", fileName: "file3"),
1284var memoryStream = new MemoryStream(Encoding.UTF8.GetBytes(data));
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (12)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (3)
Microsoft.AspNetCore.Mvc.TagHelpers (2)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (8)
Microsoft.AspNetCore.Mvc.Testing (2)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (11)
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
Microsoft.AspNetCore.OpenApi.Tests (6)
Microsoft.AspNetCore.OutputCaching.Tests (3)
Microsoft.AspNetCore.RequestDecompression.Tests (12)
Microsoft.AspNetCore.ResponseCaching (1)
Microsoft.AspNetCore.ResponseCompression.Tests (8)
Microsoft.AspNetCore.Routing.Tests (12)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
Microsoft.AspNetCore.Server.IIS (3)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (7)
Microsoft.AspNetCore.Session (3)
Microsoft.AspNetCore.Shared.Tests (1)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
Microsoft.AspNetCore.SignalR.Common.Tests (4)
Microsoft.AspNetCore.SignalR.Microbenchmarks (2)
Microsoft.AspNetCore.StaticAssets (1)
Microsoft.AspNetCore.StaticAssets.Tests (2)
Microsoft.AspNetCore.StaticFiles.Tests (2)
Microsoft.AspNetCore.Tests (2)
Microsoft.AspNetCore.WebUtilities (6)
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (3)
Microsoft.AspNetCore.WebUtilities.Tests (67)
HttpRequestStreamReaderTest.cs (14)
102var reader = new HttpRequestStreamReader(new MemoryStream(), Encoding.UTF8);
192var stream = new MemoryStream();
216var stream = new MemoryStream();
240var stream = new MemoryStream();
253var stream = new MemoryStream();
359var httpRequestStreamReader = new HttpRequestStreamReader(new MemoryStream(), Encoding.UTF8, size, ArrayPool<byte>.Shared, ArrayPool<char>.Shared);
378var httpRequestStreamReader = new HttpRequestStreamReader(new MemoryStream(), Encoding.UTF8, 10, ArrayPool<byte>.Shared, ArrayPool<char>.Shared);
391var httpRequestStreamReader = new HttpRequestStreamReader(new MemoryStream(), Encoding.UTF8, 10, ArrayPool<byte>.Shared, ArrayPool<char>.Shared);
411var stream = new MemoryStream();
422return new MemoryStream(testData);
436return new MemoryStream(data.ToArray());
442yield return new object?[] { new MemoryStream(), null, ArrayPool<byte>.Shared, ArrayPool<char>.Shared };
443yield return new object?[] { new MemoryStream(), Encoding.UTF8, null, ArrayPool<char>.Shared };
444yield return new object?[] { new MemoryStream(), Encoding.UTF8, ArrayPool<byte>.Shared, null };
HttpResponseStreamWriterTest.cs (10)
18var memoryStream = new MemoryStream();
630var stream = new MemoryStream();
665var stream = new MemoryStream();
687var stream = new MemoryStream();
747var httpRequestStreamReader = new HttpRequestStreamReader(new MemoryStream(), Encoding.UTF8, size, ArrayPool<byte>.Shared, ArrayPool<char>.Shared);
766var httpResponseStreamWriter = new HttpResponseStreamWriter(new MemoryStream(), Encoding.UTF8, 10, ArrayPool<byte>.Shared, ArrayPool<char>.Shared);
779var httpResponseStreamWriter = new HttpResponseStreamWriter(new MemoryStream(), Encoding.UTF8, 10, ArrayPool<byte>.Shared, ArrayPool<char>.Shared);
849yield return new object?[] { new MemoryStream(), null, ArrayPool<byte>.Shared, ArrayPool<char>.Shared };
850yield return new object?[] { new MemoryStream(), Encoding.UTF8, null, ArrayPool<char>.Shared };
851yield return new object?[] { new MemoryStream(), Encoding.UTF8, ArrayPool<byte>.Shared, null };
Microsoft.Build.Framework (1)
Microsoft.Build.Tasks.CodeAnalysis (3)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (3)
Microsoft.CodeAnalysis (6)
Microsoft.CodeAnalysis.Analyzers (2)
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
Microsoft.CodeAnalysis.CodeStyle (2)
Microsoft.CodeAnalysis.Compiler.Test.Resources (1)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (9)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (125)
Emit\ResourceTests.cs (22)
137var memStream = new MemoryStream(TestResources.General.nativeCOFFResources);
210var result = c1.Emit(new MemoryStream(), manifestResources:
221result = c1.Emit(new MemoryStream(), manifestResources:
238Func<Stream> dataProvider = () => new MemoryStream(new byte[] { });
240var result = c1.Emit(new MemoryStream(), manifestResources:
258Func<Stream> dataProvider = () => new MemoryStream(new byte[] { });
260var result = c1.Emit(new MemoryStream(), manifestResources:
273result = c1.Emit(new MemoryStream(), manifestResources:
291Func<Stream> dataProvider = () => new MemoryStream(new byte[] { });
293var result = c1.Emit(new MemoryStream(), manifestResources:
311Func<Stream> dataProvider = () => new MemoryStream(new byte[] { });
313var result = c1.Emit(new MemoryStream(), manifestResources:
323result = c1.Emit(new MemoryStream(), manifestResources:
338Func<Stream> dataProvider = () => new MemoryStream(new byte[] { });
340var result = c1.Emit(new MemoryStream(), manifestResources:
354result = c1.Emit(new MemoryStream(), manifestResources:
369result = c1.Emit(new MemoryStream(), manifestResources:
382result = c1.Emit(new MemoryStream(), manifestResources:
770var output = new MemoryStream();
797var output = new MemoryStream();
888var backingStream = new MemoryStream(new byte[] { 1, 2, 3, 4 });
900var result = c1.Emit(new MemoryStream(), manifestResources:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (69)
PDB\PDBSourceLinkTests.cs (10)
53var pdbStream = new MemoryStream();
54c.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(format), pdbStream: pdbStream, sourceLinkStream: new MemoryStream(sourceLinkBlob));
83var peBlob = c.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded), sourceLinkStream: new MemoryStream(sourceLinkBlob));
122var pdbStream = format != DebugInformationFormat.Embedded ? new MemoryStream() : null;
123var result = c.Emit(new MemoryStream(), pdbStream, options: EmitOptions.Default.WithDebugInformationFormat(format), sourceLinkStream: sourceLinkStream);
146peStream: new MemoryStream(),
148pdbStream: new MemoryStream(),
155sourceLinkStream: new MemoryStream(new byte[] { 1, 2, 3 }),
187var pdbStream = new MemoryStream();
188c.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(format), pdbStream: pdbStream, sourceLinkStream: new MemoryStream(sourceLinkBlob));
PDB\PDBTests.cs (26)
52var result = comp.Emit(new MemoryStream(), pdbStream: new MemoryStream());
72var result = comp.Emit(new MemoryStream(), pdbStream: new MemoryStream());
113var result = outputCompilation.Emit(new MemoryStream(), pdbStream: new MemoryStream());
142var result = comp.Emit(new MemoryStream(), pdbStream: new MemoryStream());
254peStream: new MemoryStream(),
256pdbStream: new MemoryStream(),
286peStream: new MemoryStream(),
288pdbStream: new MemoryStream(),
318peStream: new MemoryStream(),
320pdbStream: new MemoryStream(),
350peStream: new MemoryStream(),
352pdbStream: new MemoryStream(),
404peStream: new MemoryStream(),
406pdbStream: new MemoryStream(),
715var result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: f2.GetPublicSymbol());
720result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: d_t_g_int.GetPublicSymbol());
725result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: d_int_g.GetPublicSymbol());
730result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: d_int_g_int.GetPublicSymbol());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (25)
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (9)
ScriptTests.cs (9)
48var script = CSharpScript.Create(new MemoryStream(Encoding.UTF8.GetBytes("1 + 2")), ScriptOptions);
86var peStream = new MemoryStream();
87var pdbStream = new MemoryStream();
144var script = CSharpScript.Create(new MemoryStream(Encoding.UTF8.GetBytes("1 + 2")), ScriptOptions);
884return VerifyStackTraceAsync(() => CSharpScript.Create(new MemoryStream(Encoding.UTF8.GetBytes("throw new System.Exception();")), opts), line: 1, column: 1, filename: "debug.csx");
891return VerifyStackTraceAsync(() => CSharpScript.Create(new MemoryStream(Encoding.UTF8.GetBytes("throw new System.Exception();")), opts));
929return VerifyStackTraceAsync(() => CSharpScript.Create(new MemoryStream(Encoding.UTF8.GetBytes("throw new System.Exception();")), opts), line: 1, column: 1, filename: "");
936return VerifyStackTraceAsync(() => CSharpScript.Create(new MemoryStream(Encoding.UTF8.GetBytes("throw new System.Exception();")), opts));
1127var stream = new MemoryStream(
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (29)
Compilation\CompilationAPITests.cs (22)
389Assert.Throws<ArgumentException>(() => c.Emit(new MemoryStream(), pdbStream));
396var stream = new MemoryStream();
447Assert.Throws<ArgumentException>("pdbStream", () => comp.Emit(peStream: new MemoryStream(), pdbStream: new TestStream(canRead: true, canWrite: false, canSeek: true)));
448Assert.Throws<ArgumentException>("pdbStream", () => comp.Emit(peStream: new MemoryStream(), pdbStream: new MemoryStream(), options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded)));
451peStream: new MemoryStream(),
452pdbStream: new MemoryStream(),
457peStream: new MemoryStream(),
460embeddedTexts: new[] { EmbeddedText.FromStream("_", new MemoryStream()) }));
463peStream: new MemoryStream(),
466embeddedTexts: new[] { EmbeddedText.FromStream("_", new MemoryStream()) }));
469peStream: new MemoryStream(),
473peStream: new MemoryStream(),
478peStream: new MemoryStream(),
479pdbStream: new MemoryStream(),
1884var mft = new MemoryStream(new byte[] { 0, 1, 2, 3, });
2230PEHeaders h = new PEHeaders(new MemoryStream(netModule));
2263var appConfig = new MemoryStream(Encoding.UTF8.GetBytes(
2323var appConfig = new MemoryStream(Encoding.UTF8.GetBytes(
3096var moduleStream = new MemoryStream();
3115var moduleStream = new MemoryStream();
3136var moduleStream = new MemoryStream();
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (10)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (7)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (2)
Microsoft.CodeAnalysis.Features (7)
Microsoft.CodeAnalysis.Features.Test.Utilities (5)
Microsoft.CodeAnalysis.Features.UnitTests (2)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (2)
Microsoft.CodeAnalysis.PublicApiAnalyzers (2)
Microsoft.CodeAnalysis.Rebuild (4)
Microsoft.CodeAnalysis.Rebuild.UnitTests (10)
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
Microsoft.CodeAnalysis.Scripting (2)
Microsoft.CodeAnalysis.SemanticSearch.Extensions (1)
Microsoft.CodeAnalysis.Test.Utilities (19)
Microsoft.CodeAnalysis.UnitTests (63)
EmbeddedTextTests.cs (7)
43Assert.Throws<ArgumentException>("text", () => EmbeddedText.FromSource("path", SourceText.From(new MemoryStream(new byte[0]), Encoding.UTF8, canBeEmbedded: false)));
54Assert.Throws<ArgumentException>("checksumAlgorithm", () => EmbeddedText.FromStream("path", new MemoryStream(), SourceHashAlgorithm.None));
91var text = EmbeddedText.FromStream("pathToEmpty", new MemoryStream(new byte[0]), SourceHashAlgorithm.Sha1);
236SourceText.From(new MemoryStream(bytes), Encoding.ASCII, SourceHashAlgorithm.Sha1, canBeEmbedded: true) :
252var source = EncodedStringText.Create(new MemoryStream(new byte[] { 0xA9, 0x0D, 0x0A }), canBeEmbedded: true);
262var destination = new MemoryStream();
263using (var source = new DeflateStream(new MemoryStream(bytes.ToArray()), CompressionMode.Decompress))
Microsoft.CodeAnalysis.Workspaces (9)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (31)
Microsoft.Data.Analysis.Tests (13)
Microsoft.DotNet.Build.Tasks.Feed (1)
Microsoft.DotNet.Build.Tasks.Installers (11)
src\CpioWriter.cs (1)
49CpioEntry trailerEntry = new(0, "TRAILER!!!", 0, 0, 0, 0, 0, 0, 0, 0, 0, new MemoryStream());
Microsoft.DotNet.Build.Tasks.Packaging (3)
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Microsoft.DotNet.Helix.JobSender (4)
Microsoft.DotNet.NuGetRepack.Tests (4)
Microsoft.DotNet.Open.Api.Tools.Tests (1)
Microsoft.DotNet.SignCheckLibrary (2)
Microsoft.DotNet.SignTool (4)
Microsoft.DotNet.SignTool.Tests (3)
Microsoft.DotNet.StrongName (3)
Microsoft.Extensions.AI.Abstractions (7)
Microsoft.Extensions.AI.Abstractions.Tests (5)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (1)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (3)
Microsoft.Extensions.AI.Integration.Tests (4)
Microsoft.Extensions.AI.OpenAI (4)
Microsoft.Extensions.AI.OpenAI.Tests (3)
Microsoft.Extensions.AI.Tests (4)
Microsoft.Extensions.ApiDescription.Tool.Tests (4)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
Microsoft.Extensions.Configuration.KeyPerFile.Tests (2)
Microsoft.Extensions.Configuration.Xml (1)
Microsoft.Extensions.DataIngestion.Tests (5)
Microsoft.Extensions.FileProviders.Embedded.Tests (2)
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (2)
Microsoft.Extensions.Http.Diagnostics.Tests (7)
Microsoft.Extensions.Http.Resilience.Tests (1)
Microsoft.Extensions.Localization.Tests (1)
Microsoft.Extensions.Logging.AzureAppServices (1)
Microsoft.Extensions.Logging.EventSource (1)
Microsoft.Extensions.Telemetry.Tests (1)
Microsoft.Extensions.Validation.GeneratorTests (4)
Microsoft.Gen.Logging.Unit.Tests (1)
Microsoft.JSInterop.Tests (3)
Microsoft.Maui (1)
Microsoft.Maui.Graphics (14)
Microsoft.Maui.Resizetizer (1)
Microsoft.ML.AutoML (2)
Microsoft.ML.AutoML.Tests (1)
Microsoft.ML.Core (4)
Microsoft.ML.Data (7)
Microsoft.ML.Ensemble (2)
Microsoft.ML.FastTree (2)
Microsoft.ML.ImageAnalytics (1)
Microsoft.ML.OnnxTransformerTest (2)
Microsoft.ML.Parquet (6)
Microsoft.ML.Predictor.Tests (1)
Microsoft.ML.Samples (2)
Microsoft.ML.TensorFlow.Tests (1)
Microsoft.ML.TestFramework (1)
Microsoft.ML.Tests (25)
Microsoft.ML.Tokenizers.Tests (1)
Microsoft.ML.Transforms (2)
Microsoft.VisualBasic.Core (1)
Microsoft.VisualBasic.Forms.Tests (1)
Microsoft.VisualStudio.Extensibility.Testing.Xunit (1)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (5)
PresentationBuildTasks (9)
PresentationCore (26)
PresentationCore.Tests (7)
PresentationFramework (30)
PresentationFramework-SystemDrawing (2)
RazorBuildWebSite (1)
ReachFramework (10)
Replay (3)
Roslyn.Diagnostics.Analyzers (2)
Roslyn.Test.PdbUtilities (10)
Roslyn.VisualStudio.Next.UnitTests (2)
ScenarioTests.Common.Tests (1)
Security.TransportSecurity.IntegrationTests (2)
SemanticSearch.BuildTask (3)
Shared.Tests (1)
SocialWeather (2)
Sockets.FunctionalTests (2)
System.Configuration.ConfigurationManager (11)
System.Data.Common (8)
System.Drawing.Common (10)
System.Drawing.Common.Tests (29)
System.Formats.Tar (6)
System.IO.Compression (6)
System.IO.IsolatedStorage (2)
System.IO.Packaging (1)
System.Memory.Data (2)
System.Net.Http (6)
System.Net.HttpListener (2)
System.Net.Mail (4)
System.Net.Requests (1)
System.Net.Security (2)
System.Private.CoreLib (1)
System.Private.DataContractSerialization (5)
System.Private.Windows.Core (3)
System.Private.Windows.Core.Tests (17)
System.Private.Windows.Core.TestUtilities (3)
System.Private.Xml (6)
System.Reflection.MetadataLoadContext (2)
System.Resources.Extensions (4)
System.Resources.Writer (3)
System.Security.Cryptography (6)
System.Security.Cryptography.Cose (1)
System.Security.Cryptography.Pkcs (1)
System.Security.Cryptography.Xml (17)
System.ServiceModel.Federation (2)
System.ServiceModel.Http (1)
System.ServiceModel.Primitives (20)
System.ServiceModel.Primitives.Tests (5)
System.ServiceModel.Syndication (2)
System.Transactions.Local (2)
System.Windows.Forms (30)
System.Windows.Forms.Design (8)
System.Windows.Forms.Design.Tests (21)
System.Windows.Forms.Tests (82)
System.Windows.Forms.UI.IntegrationTests (1)
Test.Utilities (2)
Text.Analyzers (2)
vbc (3)
VBCSCompiler (3)
VBCSCompiler.UnitTests (5)
WindowsBase.Tests (1)
WindowsFormsIntegration (2)
WsFedSample (1)
1763 references to MemoryStream
aspire (1)
Aspire.Dashboard (9)
Aspire.Dashboard.Tests (17)
Aspire.Hosting (1)
Aspire.Hosting.Azure.EventHubs (2)
Aspire.Hosting.Azure.ServiceBus (2)
Aspire.Hosting.PostgreSQL (1)
Aspire.Hosting.Tests (41)
BinaryFormatTests (18)
BuildValidator (2)
ComDisabled.Tests (1)
ConfigurationSchemaGenerator.Tests (1)
Contract.Service.IntegrationTests (1)
csc (2)
dotnet-svcutil-lib (19)
dotnet-user-secrets (1)
Extensibility.MessageEncoder.IntegrationTests (3)
FilesWebSite (3)
FormatterWebSite (1)
GenerateDocumentationAndConfigFiles (6)
GetDocument.Insider (1)
HttpStress (1)
IdeBenchmarks (2)
IdentitySample.PasskeyConformance (1)
illink (1)
InMemory.FunctionalTests (10)
InProcessWebSite (2)
Metrics (6)
Metrics.Legacy (6)
Microsoft.AspNetCore.App.Analyzers.Test (1)
Microsoft.AspNetCore.Authentication (4)
Microsoft.AspNetCore.Authentication.Test (6)
Microsoft.AspNetCore.Authentication.Twitter (2)
Microsoft.AspNetCore.Components.Endpoints (2)
Microsoft.AspNetCore.Components.Endpoints.Tests (15)
Microsoft.AspNetCore.Components.Server.Tests (16)
Microsoft.AspNetCore.Components.Web (1)
Microsoft.AspNetCore.Components.Web.Tests (1)
Microsoft.AspNetCore.Components.WebAssembly.Tests (4)
Microsoft.AspNetCore.DataProtection (2)
Microsoft.AspNetCore.DataProtection.Tests (1)
Microsoft.AspNetCore.Diagnostics (2)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Microsoft.AspNetCore.Diagnostics.Tests (2)
Microsoft.AspNetCore.Hosting (2)
Microsoft.AspNetCore.Hosting.Tests (3)
Microsoft.AspNetCore.Http.Abstractions.Tests (5)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Connections.Tests (47)
Microsoft.AspNetCore.Http.Microbenchmarks (4)
Microsoft.AspNetCore.Http.Results.Tests (63)
Microsoft.AspNetCore.Http.Tests (6)
Microsoft.AspNetCore.HttpLogging.Tests (2)
Microsoft.AspNetCore.Identity (2)
Microsoft.AspNetCore.Identity.InMemory.Test (1)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.Core.Test (45)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (8)
Microsoft.AspNetCore.Mvc.IntegrationTests (8)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (9)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (2)
Microsoft.AspNetCore.Mvc.TagHelpers (2)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (4)
Microsoft.AspNetCore.Mvc.Testing (1)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (8)
Microsoft.AspNetCore.OpenApi.Tests (7)
Microsoft.AspNetCore.OutputCaching.Tests (3)
Microsoft.AspNetCore.RequestDecompression.Tests (11)
Microsoft.AspNetCore.ResponseCaching (1)
Microsoft.AspNetCore.ResponseCompression.Tests (7)
Microsoft.AspNetCore.Routing.Tests (8)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
Microsoft.AspNetCore.Server.IIS (3)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
Microsoft.AspNetCore.Session (1)
Microsoft.AspNetCore.Shared.Tests (1)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
Microsoft.AspNetCore.SignalR.Common.Tests (4)
Microsoft.AspNetCore.SignalR.Microbenchmarks (2)
Microsoft.AspNetCore.StaticAssets (1)
Microsoft.AspNetCore.StaticAssets.Tests (2)
Microsoft.AspNetCore.StaticFiles.Tests (1)
Microsoft.AspNetCore.Tests (1)
Microsoft.AspNetCore.WebUtilities (4)
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (3)
Microsoft.AspNetCore.WebUtilities.Tests (64)
Microsoft.Build.Framework (1)
Microsoft.Build.Tasks.CodeAnalysis (2)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (2)
Microsoft.CodeAnalysis (8)
Microsoft.CodeAnalysis.Analyzers (6)
Microsoft.CodeAnalysis.AnalyzerUtilities (7)
Microsoft.CodeAnalysis.BannedApiAnalyzers (6)
Microsoft.CodeAnalysis.CodeStyle (6)
Microsoft.CodeAnalysis.Collections.Package (2)
Microsoft.CodeAnalysis.Compiler.Test.Resources (1)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (106)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (27)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (29)
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (10)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
Microsoft.CodeAnalysis.Extensions.Package (2)
Microsoft.CodeAnalysis.Features (7)
Microsoft.CodeAnalysis.Features.Test.Utilities (4)
Microsoft.CodeAnalysis.Features.UnitTests (2)
Microsoft.CodeAnalysis.InteractiveHost (2)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (6)
Microsoft.CodeAnalysis.PublicApiAnalyzers (6)
Microsoft.CodeAnalysis.Rebuild (2)
Microsoft.CodeAnalysis.Rebuild.UnitTests (11)
Microsoft.CodeAnalysis.ResxSourceGenerator (6)
Microsoft.CodeAnalysis.Scripting (2)
Microsoft.CodeAnalysis.SemanticSearch.Extensions (1)
Microsoft.CodeAnalysis.Test.Utilities (20)
Microsoft.CodeAnalysis.Threading.Package (2)
Microsoft.CodeAnalysis.UnitTests (31)
Microsoft.CodeAnalysis.Workspaces (15)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (26)
Microsoft.Data.Analysis.Tests (11)
Microsoft.DotNet.Build.Tasks.Feed (1)
Microsoft.DotNet.Build.Tasks.Installers (14)
src\CpioEntry.cs (2)
15internal sealed class CpioEntry(ulong inode, string name, ulong timestamp, ulong ownerID, ulong groupID, uint mode, ushort numberOfLinks, ulong devMajor, ulong devMinor, ulong rdevMajor, ulong rdevMinor, MemoryStream dataStream)
33public MemoryStream DataStream { get; } = dataStream;
Microsoft.DotNet.Build.Tasks.Packaging (3)
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Microsoft.DotNet.Helix.JobSender (3)
Microsoft.DotNet.NuGetRepack.Tests (2)
Microsoft.DotNet.Open.Api.Tools.Tests (2)
Microsoft.DotNet.SignCheckLibrary (3)
Microsoft.DotNet.SignTool (2)
Microsoft.DotNet.SignTool.Tests (3)
Microsoft.DotNet.StrongName (3)
Microsoft.Extensions.AI.Abstractions (4)
Microsoft.Extensions.AI.Abstractions.Tests (5)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (1)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (3)
Microsoft.Extensions.AI.Integration.Tests (4)
Microsoft.Extensions.AI.OpenAI (2)
Microsoft.Extensions.AI.OpenAI.Tests (2)
Microsoft.Extensions.AI.Tests (4)
Microsoft.Extensions.ApiDescription.Tool.Tests (4)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
Microsoft.Extensions.Configuration.Xml (1)
Microsoft.Extensions.DataIngestion.Tests (5)
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (2)
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Microsoft.Extensions.Localization.Tests (1)
Microsoft.Extensions.Logging.AzureAppServices (1)
Microsoft.Extensions.Logging.EventSource (1)
Microsoft.Extensions.Telemetry.Tests (1)
Microsoft.Extensions.Validation.GeneratorTests (4)
Microsoft.Gen.Logging.Unit.Tests (1)
Microsoft.Maui (1)
Microsoft.Maui.Graphics (13)
Microsoft.Maui.Resizetizer (1)
Microsoft.ML.AutoML (1)
Microsoft.ML.AutoML.Tests (1)
Microsoft.ML.Core (1)
Microsoft.ML.Data (35)
Microsoft.ML.Ensemble (2)
Microsoft.ML.FastTree (2)
Microsoft.ML.ImageAnalytics (1)
Microsoft.ML.OnnxTransformerTest (2)
Microsoft.ML.Parquet (6)
Microsoft.ML.Predictor.Tests (1)
Microsoft.ML.Samples (2)
Microsoft.ML.TensorFlow.Tests (1)
Microsoft.ML.Tests (24)
Microsoft.ML.Tokenizers.Tests (1)
Microsoft.ML.Transforms (2)
Microsoft.VisualBasic.Forms.Tests (8)
Microsoft.VisualBasic.Tests (1)
Microsoft.VisualStudio.Extensibility.Testing.Xunit (1)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (5)
mscorlib (1)
netstandard (1)
PresentationBuildTasks (10)
PresentationCore (23)
PresentationCore.Tests (11)
PresentationFramework (32)
PresentationFramework-SystemDrawing (1)
PresentationUI (3)
ReachFramework (40)
Replay (2)
Roslyn.Diagnostics.Analyzers (6)
Roslyn.Test.PdbUtilities (9)
Roslyn.VisualStudio.Next.UnitTests (2)
Security.TransportSecurity.IntegrationTests (2)
SemanticSearch.BuildTask (3)
Shared.Tests (1)
SocialWeather (2)
Sockets.FunctionalTests (2)
System.Configuration.ConfigurationManager (7)
System.Data.Common (7)
System.Drawing.Common (8)
System.Drawing.Common.Tests (27)
System.Formats.Tar (12)
System.IO (1)
System.IO.Compression (3)
System.IO.IsolatedStorage (2)
System.Memory.Data (1)
System.Net.Http (6)
System.Net.HttpListener (9)
System.Net.Requests (2)
System.Net.Security (3)
System.Private.CoreLib (17)
System.Private.DataContractSerialization (9)
System.Private.Windows.Core (10)
System.Private.Windows.Core.Tests (35)
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (12)
14protected override void WriteObjectToStream(MemoryStream stream, object data, string format)
20MemoryStream stream,
233using MemoryStream stream = new();
253using MemoryStream stream = CreateStream(dataType, array);
276using MemoryStream stream = CreateStream(dataType, array);
293using MemoryStream stream = CreateStream(dataType, array);
456using MemoryStream stream = CreateStream(dataType, value);
476using MemoryStream stream = CreateStream(dataType, new DerivedClass());
515using MemoryStream stream = CreateStream(dataType, default(MyStruct));
548using MemoryStream stream = CreateStream(dataType, 101);
600using MemoryStream stream = CreateStream(dataType, 101);
814using MemoryStream stream = CreateStream(dataType, value);
System.Private.Windows.Core.TestUtilities (3)
System.Private.Windows.GdiPlus (1)
System.Private.Xml (4)
System.Resources.Extensions (5)
System.Resources.Writer (5)
System.Runtime (1)
System.Runtime.Extensions (1)
System.Security.Cryptography (5)
System.Security.Cryptography.Cose (1)
System.Security.Cryptography.Pkcs (1)
System.Security.Cryptography.Xml (14)
System.ServiceModel.Federation (2)
System.ServiceModel.Primitives (23)
System.ServiceModel.Primitives.Tests (3)
System.ServiceModel.Syndication (1)
System.Transactions.Local (2)
System.Windows.Forms (30)
System.Windows.Forms.Design (12)
System.Windows.Forms.Design.Tests (21)
System.Windows.Forms.Tests (101)
System.Windows.Forms.UI.IntegrationTests (1)
Test.Utilities (6)
Text.Analyzers (6)
vbc (2)
VBCSCompiler (2)
VBCSCompiler.UnitTests (5)
WindowsBase.Tests (1)
WindowsFormsIntegration (2)
WsFedSample (1)