iOS 基础类解析 - NSData、NSMutableData

太阳火神的漂亮人生 (http://blog.csdn.net/opengl_es)

本文遵循“署名-非商业用途-保持一致”创作公用协议

转载请保留此句:太阳火神的漂亮人生 -  本博客专注于 敏捷开发及移动和物联设备研究:iOS、Android、Html5、Arduino、pcDuino,否则。出自本博客的文章拒绝转载或再转载。谢谢合作。

NSData Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/Foundation.framework
Availability
Available in iOS 2.0 and later.
Declared in
NSData.h
Companion guides
Related sample code

Overview

NSData 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.

Tasks

Creating Data Objects

Accessing Data

Base-64 Encoding

Testing Data

Storing Data


Copyright © 2014 Apple Inc. All Rights Reserved. Terms of Use | Privacy
Policy
 | Updated: 2014-02-11

最新文章

  1. BZOJ3160万径人踪灭
  2. Oracle 编程
  3. 这些年正Android - 身在他乡
  4. 数学对象-Math
  5. Entity Framework 的简单介绍与实例
  6. 静态类和静态类成员(C# 编程指南)
  7. 【转】利用 Bootstrap 进行快速 Web 开发
  8. final specifier (since C++11)
  9. C# 越来越复杂了
  10. C#快速学习笔记(译)
  11. throw 与 throws的应用
  12. 关于 gravity与layout_gravity
  13. 各浏览器对 window.open() 的窗口特征 sFeatures 参数支持程度存在差异
  14. java实现简单web服务器(分析+源代码)
  15. @Transactional注解详解
  16. vDSP加速的应用
  17. Linux 实例常用内核网络参数介绍与常见问题处理
  18. SqlServer 查看最近执行过的语句
  19. 关于浏览器对html, js,css的解析先后顺序的理解
  20. 【翻译】go memory model

热门文章

  1. Unity Sprite Packer 问题集合
  2. python 之 sqlite3
  3. Python语言之数据结构2(字典,引用)
  4. java实例1
  5. python_文件io
  6. 通过offset值的设置使html元素对齐
  7. ionic4封装样式原理
  8. sublime右键菜单,anaconda设置
  9. mysql在windows上安装
  10. 洛谷——P1063 能量项链