mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-09-25 00:15:15 +00:00
Bug fix on counting
This commit is contained in:
@@ -41,7 +41,7 @@ namespace SharpCompress.IO
|
||||
public override async Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
|
||||
{
|
||||
await Stream.WriteAsync(buffer, offset, count, cancellationToken);
|
||||
Count += (uint)buffer.Length;
|
||||
Count += (uint)count;
|
||||
}
|
||||
|
||||
public override async ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = default)
|
||||
|
||||
Reference in New Issue
Block a user