mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-06 13:34:58 +00:00
leaveOpen argument for XZStream constructor #291
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ied206 on GitHub (Apr 21, 2018).
While
SharpCompress.Compressorsclasses likeDeflateStreamandBZip2StreamhaveleaveOpenargument in its constructor,XZStreamandRarStreamdoes not.Is there any special reason for this? It would be better to have
leaveOpento every Stream inSharpCompress.Compressors, to match convention ofSystem.IO.Compression.@adamhathcock commented on GitHub (Apr 21, 2018):
No special reason other than just didn’t think about it.
Rather than implementing
leaveOpenon each, I should remove it and useNonDisposingStreamto wrap instead.@adamhathcock commented on GitHub (Apr 22, 2018):
Fixing here: https://github.com/adamhathcock/sharpcompress/pull/369
@ied206 commented on GitHub (May 5, 2018):
Thanks for fixing!
@amoraitis commented on GitHub (Jan 20, 2020):
Hi @adamhathcock, I am upgrading
SharpCompressfrom0.10.3to the latest and I noticed that your removedleaveOpenparameter fromBZip2Stream's andGZipStreams constructors. Should I add something to my implementation other than removing theleaveOpenparameter from the constructors?