Update src/SharpCompress/IO/SharpCompressStream.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Adam Hathcock
2025-12-23 15:06:24 +00:00
committed by GitHub
parent 6991900eb0
commit 4dbe0b91f1

View File

@@ -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));