-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide System.IO.Pipelines package readme #94372
Provide System.IO.Pipelines package readme #94372
Conversation
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This example looks really inefficient.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @dotnet/area-system-io
Fill out details for the
System.IO.Pipelines
NuGet package readme.See #92228