libz.dylib的研究 libz.1.2.5.tbd

官方文档


A file ending in the extension  .dylib  is a dynamic library: it's a library that's loaded at runtime instead of at compile time. If you're familiar with DLLs from Windows or DSOs, it's more or less the same type of thing with a few twists. The Dynamic Library Programming Topics  section of the Mac OS X Developer Library covers all the details about the format and what you should be aware of.

libz.dylib  is the dynamic library for  Zlib , a general compression library. PDFs can (and usually do) use zlib to compress different aspects of the data contained within them, but accessing the PDF data at that level is pretty low-level, and higher-level libraries would abstract most of that type of stuff.

后缀名为.dylib的文件是一个动态库,这个库是运行时加载而不是编译时加载。这个也说明了obj-C是运行时语言,也就是数据的类型不是在编译时确定的,而是在运行时确定的。

libz.dylib也是zip压缩解压缩的库,开发中经常用到的压缩库,PDF可以使用这个库文件来压缩。

在Finder中查看,你会发现 libz.dylib,l ibz.1.dylib, l ibz.1.1.3.dylib 其实只是一个“替身”,实际上还是指向 libz.1.2.5.dylib(Xcode 4.5) 

libz.dylib 更名为libz.1.2.5.tbd


总结:

1.dylib意味着这是一个动态链接库.


2. libz.dylib是提供zip压缩解压缩的库


3. 库的接口请#import "zlib.h"



  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值