diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-10-24 15:49:27 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-10-24 15:49:27 +0700 |
commit | be97c80fdecadac37413a6a6a8de417e0332f6bf (patch) | |
tree | def3bf31b937a4e59458574f6441036ffdf61616 /crypto/src/util/zlib | |
parent | Use correct OID (diff) | |
download | BouncyCastle.NET-ed25519-be97c80fdecadac37413a6a6a8de417e0332f6bf.tar.xz |
Use platform compression where available
- Move Bzip2 code into Utilities
Diffstat (limited to '')
-rw-r--r-- | crypto/src/util/zlib/ZOutputStream.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/crypto/src/util/zlib/ZOutputStream.cs b/crypto/src/util/zlib/ZOutputStream.cs index 301516e57..51a5050dd 100644 --- a/crypto/src/util/zlib/ZOutputStream.cs +++ b/crypto/src/util/zlib/ZOutputStream.cs @@ -264,4 +264,38 @@ namespace Org.BouncyCastle.Utilities.Zlib Write(buf1, 0, 1); } } + + public class ZOutputStreamLeaveOpen + : ZOutputStream + { + public ZOutputStreamLeaveOpen(Stream output) + : base(output) + { + } + + public ZOutputStreamLeaveOpen(Stream output, bool nowrap) + : base(output, nowrap) + { + } + + public ZOutputStreamLeaveOpen(Stream output, ZStream z) + : base(output, z) + { + } + + public ZOutputStreamLeaveOpen(Stream output, int level) + : base(output, level) + { + } + + public ZOutputStreamLeaveOpen(Stream output, int level, bool nowrap) + : base(output, level, nowrap) + { + } + + protected override void Dispose(bool disposing) + { + Detach(disposing); + } + } } |