PipeReader CopyToAsync an overload to copy To IBufferWriter<byte> #2062
Labels
api-suggestion
Early API idea and discussion, it is NOT ready for implementation
area-System.IO.Pipelines
backlog-cleanup-candidate
An inactive issue that has been marked for automated closure.
no-recent-activity
Milestone
At the moment (net core 3.1.1)
PipeReader.CopyToAsync
has 2 overloads:Stream
PipeWriter
(which implementsIBufferWriter<byte>
)https://docs.microsoft.com/en-us/dotnet/api/system.io.pipelines.pipereader.copytoasync
I'm trying to copy
PipeReader
intoArrayBufferWriter<byte>
which seems like a common use-case and there's no direct way to do it.Of course I could use a
MemoryStream
but where's the fun in that?The text was updated successfully, but these errors were encountered: