Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ref files from System.IO.Compression and System.IO.Compression.Brotli with autogenerated file using GenAPI #112440

Merged
merged 9 commits into from
Feb 12, 2025
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