mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
CompressionInfo on AddFile does not work #82
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 @kenkendk on GitHub (Jan 25, 2016).
When calling
WriteToStreamand supplying aCompressionInfoinstance, it appears to be ignored.Instead, the implementation reads the
CompressionInfoinstance passed to the constructor for theZipWriter. By hacking it with reflection, I can change theCompressionLevelfield on the original instance, and that allows me to change the compression level on a per-stream basis.@adamhathcock commented on GitHub (Feb 3, 2016):
Any chance for a PR? I'll queue this up to look at.
@kenkendk commented on GitHub (Feb 4, 2016):
Yes, there is now a PR.
There should also be a unittest for this, but I have not made that.
@adamhathcock commented on GitHub (Feb 4, 2016):
Thanks! I'll test it later.