문제

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