mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-09-24 16:05:27 +00:00
Fix regression with size calculation
This commit is contained in:
@@ -57,11 +57,7 @@ internal class BufferedSubStream(Stream stream, long origin, long bytesToRead)
|
||||
RefillCache();
|
||||
}
|
||||
|
||||
if (count > _cacheLength)
|
||||
{
|
||||
count = _cacheLength;
|
||||
}
|
||||
|
||||
count = Math.Min(count, _cacheLength - _cacheOffset);
|
||||
Buffer.BlockCopy(_cache, _cacheOffset, buffer, offset, count);
|
||||
_cacheOffset += count;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user