GithubHelp home page GithubHelp logo

Add 'Unzip NSData' about ziparchive HOT 6 OPEN

ziparchive avatar ziparchive commented on May 14, 2024
Add 'Unzip NSData'

from ziparchive.

Comments (6)

Coeur avatar Coeur commented on May 14, 2024 4

@AlicanC , istx25 left the project.
The idea seems nice, so I'll reopen this feature request.

from ziparchive.

soffes avatar soffes commented on May 14, 2024

Love it. Would be a great addition.

from ziparchive.

frytaz avatar frytaz commented on May 14, 2024

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.

from ziparchive.

karagraysen avatar karagraysen commented on May 14, 2024

Please create a PR, @frytaz!

from ziparchive.

karagraysen avatar karagraysen commented on May 14, 2024

@frytaz: Please read #163.

from ziparchive.

AlicanC avatar AlicanC commented on May 14, 2024

@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

from ziparchive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.