weichsel / ZIPFoundation

Effortless ZIP Handling in Swift
MIT License
2.31k stars 255 forks source link

Allow writing of entry when full uncompressed size is not known. #276

Open ps2 opened 1 year ago

ps2 commented 1 year ago

Some situations require streaming compression where the full size of the input/uncompressed data is not known, such as serializing a large number of objects where loading all the objects into memory would be prohibitive.

Changes proposed in this PR

I assume the progress feedback functionality will not work when passing nil for uncompressedSize. This is ok in my particular use case. I don't think reporting progress is possible when the full size of the data to be compressed is not known.

Thanks for the simple library! Allows us to move off of the aging (and full of warnings/deprecations) minizip library.

ps2 commented 11 months ago

Let me know if there is anything I can change to make this acceptable. Thanks!