What is the difference between NSData and NSMutableData?
From the tag tag wiki tag:
nsdata
The NSData class is the apple class for storing shared data. Often used when reading / writing from and to files, as well as on the Internet.
nsmutabledata
NSMutableData (and its superclass NSData) provide data objects, object-oriented wrappers for byte buffers.
NSData fixed after creation.
NSData
NSMutableDataAs the name implies, it allows you to perform operations that modify the contents of the ( appendBytes:, appendData, setData:...).
NSMutableData
appendBytes:
appendData
setData: