Uh oh!
There was an error while loading. Please reload this page.
Provide System.IO.Pipelines package readme - #94372
Conversation
ghost
commented
Nov 4, 2023
Tagging subscribers to this area: @dotnet/area-system-io Issue DetailsFill out details for the See #92228
|
| for (int i = 0; i < input.Length; i++) | ||
| { | ||
| Memory<byte> memory = writer.GetMemory(1); | ||
| memory.Span[0] = input[i]; | ||
| writer.Advance(1); | ||
| // Make the data available to the PipeReader. | ||
| await writer.FlushAsync(); | ||
| } |
There was a problem hiding this comment.
This example looks really inefficient.
There was a problem hiding this comment.
I tried to create a simple implementation of the workings of Pipe but have no further experience with it in practice.
The example that is part of the conceptual documentation link (https://learn.microsoft.com/en-us/dotnet/standard/io/pipelines#pipe-basic-usage) requires quite a large explanation, which didn't seem appropriate for the readme of the package itself.
I'm open for suggestions.
Fill out details for the
System.IO.PipelinesNuGet package readme.See #92228