iOS 基础类解析 - NSData
来源:互联网 发布:淘宝买家也可以开店吗 编辑:程序博客网 时间:2024/06/05 15:51
OverviewNSData and its mutable subclass NSMutableData provide data objects, object-oriented wrappers for byte buffers. Data objects let simple allocated buffers (that is, data with no embedded pointers) take on the behavior of Foundation objects.NSData creates static data objects, and NSMutableData creates dynamic data objects. NSData and NSMutableData are typically used for data storage and are also useful in Distributed Objects applications, where data contained in data objects can be copied or moved between applications.The size of the data is subject to a theoretical limit of about 8 ExaBytes (in practice, the limit should not be a factor).NSData is “toll-free bridged” with its Core Foundation counterpart, CFDataRef . See “Toll-Free Bridging” for more information on toll-free bridging.
NSData相当于Java的字节缓冲区。
NSData和NSMutableData存储的是二进制数据,在文件操作,网络,以及核心图形图像中使用较广泛。NSData创建后不可以再修改,NSMutableData可以再次修改。
ByteBuffer其实就是一个字节缓冲区, 在这里你可以对缓冲区的数据进行字节级的操作. 这样的好处在于你可以比较方便的获取到底层的字节操作和字节数据 0 0
- iOS 基础类解析 - NSData
- iOS 基础类解析 - NSData、NSMutableData
- iOS基础一 NSData
- [ios] NSData
- iOS NSData
- iOS 服务器返回NSData数据,解析为null
- iOS 服务器返回NSData数据,解析为null
- iOS 基础类解析 - NSObject
- iOS 基础类解析 - NSNumber
- iOS 基础类解析 - NSCharacterSet
- iOS 基础类解析 - NSDate
- iOS 基础类解析 - NSString
- OC基础数据类型-NSData
- OC基础数据类型-NSData
- iOS开发-NSData
- iOS bit to nsdata
- iOS NSData探秘
- IOS-NSData使用方法
- 广积粮—筑高墙—缓称王
- C#构造函数
- 在arm上使用python-2.7.10
- programming-challenges The Tourist Guide (110903) 题解
- hdu2795
- iOS 基础类解析 - NSData
- 二叉树的层次遍历
- 三,资源初始化操作和主菜单界面的创建
- 一键拨号,发短信,QQ,百度地图导航
- 进程重启后,泄露的内存能否回收
- 图的邻接表的遍历(DFS(递归,非递归),BFS,拓扑排序)
- js中类型判断
- MFC对话框内控件大小随着对话框大小变化
- JAVA的反射机制