-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add 'Unzip NSData' #8
Comments
Love it. Would be a great addition. |
I have added option to unzip NSData simply by writing this data into temporary location on disk, unzip and remove temporary file. If this solution is fine with You I can make PR with tests. |
Please create a PR, @frytaz! |
@istx25 what has happened to this? I couldn't find any info related to this issue in the issue you linked. Also, @frytaz's solution just adds some developer convenience. It doesn't really matter if the user of the library or the library itself writes to a temp file. No matter who does it, the performance implications will still be there. If the underlying library (minizip?) supports reading from memory, then passing NSData directly to it will reduce IO and increase performance. Edit: minizip supports this: https://github.com/nmoinvaz/minizip#io-memory |
@AlicanC , istx25 left the project. |
Locates the "entity" with `name` in the zip file at `path` and unzips it, returning it as data. The entity must be a file – directories and symlinks are ignored. Password-encrypted entities are not supported. Addresses: ZipArchive#8
Directly unzip a d'loaded NSData object at a path.
The text was updated successfully, but these errors were encountered: