mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-09-23 07:25:11 +00:00
Update src/SharpCompress/IO/SharpCompressStream.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -131,7 +131,7 @@ public class SharpCompressStream : Stream, IStreamStack
|
||||
|
||||
((IStreamStack)this).SetBuffer(bufferSize, forceBuffer);
|
||||
// Check CanSeek before accessing Position to avoid exception overhead on non-seekable streams.
|
||||
_baseInitialPos = stream.CanSeek ? stream.Position : 0;
|
||||
_baseInitialPos = Stream.CanSeek ? Stream.Position : 0;
|
||||
|
||||
#if DEBUG_STREAMS
|
||||
this.DebugConstruct(typeof(SharpCompressStream));
|
||||
|
||||
Reference in New Issue
Block a user