diff options
author | Steve Pfister <steveisok@users.noreply.github.com> | 2019-08-28 23:20:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-28 23:20:09 +0300 |
commit | 7c4c30ec002c48ef97d9a36991bedec757b94264 (patch) | |
tree | 8acfc075b9a0a9b7409d0d0db1a93ea2270f313a /mcs/class/System | |
parent | c4695b8b4440e0f80c4768379fa24ba78ebff9d2 (diff) |
Implement Read and WriteAsyncMemory in Mono DeflateStream
Resolves https://github.com/mono/mono/issues/16122
Since we put in the corefx version of GZipStream, it is expected that
our version of DeflateStream actually implements Write+ReadAsyncMemory.
This change does that by just calling the plain WriteAsync & ReadAsync
methods until we decide (or not) to pull in the corefx DeflateStream.
Diffstat (limited to 'mcs/class/System')
-rw-r--r-- | mcs/class/System/System.IO.Compression/DeflateStream.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mcs/class/System/System.IO.Compression/DeflateStream.cs b/mcs/class/System/System.IO.Compression/DeflateStream.cs index cf39171bc78..a691a11167d 100644 --- a/mcs/class/System/System.IO.Compression/DeflateStream.cs +++ b/mcs/class/System/System.IO.Compression/DeflateStream.cs @@ -140,7 +140,7 @@ namespace System.IO.Compression internal ValueTask<int> ReadAsyncMemory (Memory<byte> destination, CancellationToken cancellationToken) { - throw new NotImplementedException (); + return base.ReadAsync(destination, cancellationToken); } internal int ReadCore (Span<byte> destination) @@ -180,7 +180,7 @@ namespace System.IO.Compression internal ValueTask WriteAsyncMemory (ReadOnlyMemory<byte> source, CancellationToken cancellationToken) { - throw new NotImplementedException (); + return base.WriteAsync(source, cancellationToken); } internal void WriteCore (ReadOnlySpan<byte> source) |