From f7c6edf8499558fd88d6dfce7d7aaabf08648404 Mon Sep 17 00:00:00 2001 From: Lars Vahlenberg Date: Thu, 4 Jan 2024 23:33:39 +0100 Subject: [PATCH] Fix reporting size / position --- src/SharpCompress/IO/DataDescriptorStream.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SharpCompress/IO/DataDescriptorStream.cs b/src/SharpCompress/IO/DataDescriptorStream.cs index 8ba9eb0f..ab06a407 100644 --- a/src/SharpCompress/IO/DataDescriptorStream.cs +++ b/src/SharpCompress/IO/DataDescriptorStream.cs @@ -51,7 +51,7 @@ protected override void Dispose(bool disposing) public override long Position { - get => _stream.Position; + get => _stream.Position - _start; set => _stream.Position = value; }