Вопрос

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