Skip to content

Conversation

@ps2
Copy link

@ps2 ps2 commented May 8, 2023

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

  • Allow creation of entries without specifying an uncompressedSize

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
Copy link
Author

ps2 commented Sep 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant