NSData & NSMutabledata. How do I read from within the body of a data object?

Try subdataWithRange: on an NSData instance. That should let you slice up your data however you want it before you go to replace the desired bytes in your NSMutableData.

Thanks Gordon, that'll work. Cheers. – dugla Oct 8 '09 at 1:49.

As suggested you could use the subdataWithRange: message, or use getBytes:range: to copy into a buffer then pass the raw copied buffer. Either of these would achieve the same result. But to eliminate copying the data temporarily, you could just go 'C-style' and cast to a char *, increment n bytes to where you want and pass that.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions