Added CopyToAsync(PipeWriter) (dotnet/corefx#38326)
authorDavid Fowler <davidfowl@gmail.com>
Fri, 7 Jun 2019 16:06:30 +0000 (09:06 -0700)
committerStephen Toub <stoub@microsoft.com>
Fri, 7 Jun 2019 16:06:30 +0000 (12:06 -0400)
commit531e37045f1c9f8ef48b560bec19c0b876763bea
tree4df17fb2e37120680377dfdc1d64a1bc216d9ecc
parent73ee33f1d79a05474e0b31d71672fdccc5bc8acf
Added CopyToAsync(PipeWriter) (dotnet/corefx#38326)

* Added CopyToAsync(PipeWriter)
- Reuse existing CopyToAsync routine to implement the PipeWriter overload.
- Added tests for PipeWriter overload

* Remove delegate allocations

Commit migrated from https://github.com/dotnet/corefx/commit/d4f34564bc98aee98adf0861dd4771ff473ebdbe
src/libraries/System.IO.Pipelines/ref/System.IO.Pipelines.cs
src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/PipeReader.cs
src/libraries/System.IO.Pipelines/tests/PipeReaderCopyToAsyncTests.cs