From 42bbfa08a9bd75d3d8e2623a41e00b721ef7af98 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 2 Dec 2025 09:37:51 +0000 Subject: [PATCH] Add documentation for NonDisposingStream class Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com> --- src/SharpCompress/Writers/Zip/ZipWriter.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SharpCompress/Writers/Zip/ZipWriter.cs b/src/SharpCompress/Writers/Zip/ZipWriter.cs index 725d7f3a..2359d074 100644 --- a/src/SharpCompress/Writers/Zip/ZipWriter.cs +++ b/src/SharpCompress/Writers/Zip/ZipWriter.cs @@ -807,6 +807,8 @@ public class ZipWriter : AbstractWriter /// /// A stream wrapper that doesn't dispose the underlying stream when disposed. + /// This is used in encryption scenarios where the crypto stream would otherwise + /// dispose the counting stream prematurely, before we can read the final count. /// private class NonDisposingStream : Stream {