-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider moving to minizip-ng #19
Comments
A good idea, but unfortunately pretty hard to implement. QuaZIP uses modified minizip. Some modifications were made to introduce very specific features, but the most critical one is that QuaZIP can open ZIP files which are not really files, but some other |
You should take a closer look at the new minizip which is now located under https://github.com/zlib-ng/minizip-ng If you want, i can also give you my implementation. |
I've already took a look. It certainly looks promising, but it still lacks some features. First, that
This, unfortunately, means that it still uses a string as the path. I can't possibly implement this API to open a There are also other modifications that were introduced to Minizip in QuaZip, such as the ability to disable descriptor writing for compatibility with really, really old ZIP versions (1.0 even, I think). I'd have to either ditch those features or have them implemented in minizip-ng. Overall it seems like a very good idea for QuaZip 2.0. Unfortunately, I'm a bit short on time lately, so I've absolutely no idea when I'm able to get to it, if at all. Sad, but true. |
As for the callback, you would implement it yourself so you could just ignore the parameter, which would mean the user would have to manage the QIODevice themselves (e.g. setting the path for QFile). As for the mz_stream struct, you may use the attached files. If you use them you may use any license you see fit. Usage is rather simple: either use the create and destroy functions then you need to manually set the QIODevice to use, or you can use the constructor via |
OK, that's good news. But I'll still need some time to figure it all out and make sure I don't break existing API. The QuaZip test suite being not quite thorough doesn't help either. |
The text was updated successfully, but these errors were encountered: