fix legacy type issues

This commit is contained in:
Adam Hathcock
2026-05-14 15:35:57 +01:00
parent da20f512aa
commit 9faf6fe757
4 changed files with 11 additions and 4 deletions

View File

@@ -58,7 +58,14 @@ internal sealed class RarCryptoWrapper : Stream
return count;
}
public override async Task<int> ReadAsync(
public override Task<int> ReadAsync(
byte[] buffer,
int offset,
int count,
CancellationToken cancellationToken
) => ReadAndDecryptAsync(buffer, offset, count, cancellationToken);
private async Task<int> ReadAndDecryptAsync(
byte[] buffer,
int offset,
int count,

View File

@@ -5,7 +5,7 @@ using System.Threading.Tasks;
namespace SharpCompress.Compressors.BZip2;
public sealed partial class BZip2Stream
public sealed partial class BZip2Stream : IAsyncDisposable
{
/// <summary>
/// Asynchronously finalizes the BZip2 compressed stream, flushing all pending data.

View File

@@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace SharpCompress.Compressors.BZip2;
internal sealed partial class CBZip2OutputStream
internal sealed partial class CBZip2OutputStream : IAsyncDisposable
{
private readonly byte[] bsAsyncWriteBuffer = new byte[1];

View File

@@ -10,7 +10,7 @@ using SharpCompress.Compressors.PPMd.I1;
namespace SharpCompress.Compressors.PPMd;
public class PpmdStream : Stream
public class PpmdStream : Stream, IAsyncDisposable
{
private readonly PpmdProperties _properties;
private readonly Stream _stream;