Added methods to copy to and from streams (dotnet/corefx#35212)
authorDavid Fowler <davidfowl@gmail.com>
Sat, 9 Feb 2019 23:52:29 +0000 (15:52 -0800)
committerGitHub <noreply@github.com>
Sat, 9 Feb 2019 23:52:29 +0000 (15:52 -0800)
commitfe1157edf254076052379da0660967486433c6c5
tree2a60edb909412598fcbd0863510235f1b405f8ba
parentf8cde4bcbb91d637d9a2edab98bace7fbdb76d1e
Added methods to copy to and from streams (dotnet/corefx#35212)

- Added Stream.CopyToAsync(PipeWriter)
- Added PipeWriter.CopyFromAsync(Stream)
- Added PipeReader.CopyToAsync(stream)

Commit migrated from https://github.com/dotnet/corefx/commit/603af6f2d84d9970a063bb96fbd4a2461ee3de42
src/libraries/System.IO.Pipelines/ref/System.IO.Pipelines.cs
src/libraries/System.IO.Pipelines/src/System.IO.Pipelines.csproj
src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/PipeReader.cs
src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/PipeWriter.cs
src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/StreamExtensions.netstandard.cs [new file with mode: 0644]
src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/StreamPipeExtensions.cs [new file with mode: 0644]
src/libraries/System.IO.Pipelines/tests/PipeReaderCopyToAsyncTests.cs [new file with mode: 0644]
src/libraries/System.IO.Pipelines/tests/PipeWriterCopyToAsyncTests.cs [new file with mode: 0644]
src/libraries/System.IO.Pipelines/tests/System.IO.Pipelines.Tests.csproj