oleg-st / ZstdSharp

Port of zstd compression library to c#
MIT License
217 stars 29 forks source link

Dispose inner streams #15

Closed bastianeicher closed 1 year ago

bastianeicher commented 1 year ago

Awesome library, thanks! Using this happily in 0install.

Many Streams that wrap other Streams dispose the underlying Streams when they are disposed. Often they provide an optional bool parameter to control this behaviour. Example: .NET‘s built-in GZipStream.

Could you perhaps add similar behaviour to CompressionStream and DecompressionStream?

oleg-st commented 1 year ago

Thank you for your interest!

Added leaveOpen argument to CompressionStream and DecompressionStream in master

bastianeicher commented 1 year ago

Thanks!