How do we clear an NSMutableData without using release and then re-alloc/init again to be used again?
I was looking at resetBytesInRange to be set at zero but I am unsure of this. Anyone can help?
How do we clear an NSMutableData without using release and then re-alloc/init again to
Share
If you want an empty buffer:
If you want to keep its size but set all the bytes to zero: