Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@

namespace System.IO.Compression
{
public sealed class BrotliCompressionOptions
public sealed partial class BrotliCompressionOptions
{
public int Quality { get; set; }
public BrotliCompressionOptions() { }
public int Quality { get { throw null; } set { } }
}
public partial struct BrotliDecoder : System.IDisposable
{
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -131,18 +131,19 @@ public enum ZipArchiveMode
Create = 1,
Update = 2,
}
public sealed class ZLibCompressionOptions
public sealed partial class ZLibCompressionOptions
{
public int CompressionLevel { get; set; }
public ZLibCompressionStrategy CompressionStrategy { get; set; }
public ZLibCompressionOptions() { }
public int CompressionLevel { get { throw null; } set { } }
public System.IO.Compression.ZLibCompressionStrategy CompressionStrategy { get { throw null; } set { } }
}
public enum ZLibCompressionStrategy
{
Default = 0,
Filtered = 1,
HuffmanOnly = 2,
RunLengthEncoding = 3,
Fixed = 4
Fixed = 4,
}
public sealed partial class ZLibStream : System.IO.Stream
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ public override Task<int> ReadAsync(byte[] buffer, int offset, int count, Cancel
return ReadAsyncMemory(new Memory<byte>(buffer, offset, count), cancellationToken).AsTask();
}

public override ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken = default(CancellationToken))
public override ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken = default)
{
if (GetType() != typeof(DeflateStream))
{
Expand Down Expand Up @@ -813,7 +813,7 @@ public override Task WriteAsync(byte[] buffer, int offset, int count, Cancellati
return WriteAsyncMemory(new ReadOnlyMemory<byte>(buffer, offset, count), cancellationToken).AsTask();
}

public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken)
public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = default)
{
if (GetType() != typeof(DeflateStream))
{
Expand Down
Loading