mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-07-08 18:16:30 +00:00
fix legacy type issues
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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];
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user