oleg-st/ZstdSharp

Dispose inner streams

bastianeicher opened this issue · 2 comments

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?

Thank you for your interest!

Added leaveOpen argument to CompressionStream and DecompressionStream in master

Thanks!