How to gzip NSData with zlib?

只谈情不闲聊 提交于 2019-12-06 06:19:23
  1. Yes, zlib is what is used to gzip data. I know of no better way. As for speed, you can select the compression level to optimize speed vs. compression for your application.
  2. You will likely find that libz.dylib and libz.1.dylib are symbolic links to libz.1.2.5.dylib. You should be using libz.1.2.5.dylib as opposed to 1.1.3 due to many bug fixes and performance enhancements between the two.
  3. This link from your answer is a very well commented example. You can also look at this heavily commented example of zlib use (in C).
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!