What is the difference between NSData and NSMutableData?

有帮助吗?

解决方案

From the Stack Overflow tag-wikis:

The NSData class is an apple class for holding generic data. Often used when reading/writing from and to files, and the internet.

NSMutableData (and its superclass NSData) provide data objects, object-oriented wrappers for byte buffers.

其他提示

NSData is fixed after creation.

NSMutableData, as the name implies, allows operations that change the contents (appendBytes:, appendData, setData:...).

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top