Hi Guys,
Seemingly the NSData object is kind of tight with giving up the data.
Is there are way to index a single byte as you would in a C array
without check in range, or some other slowy downy sounding thing?
Currently, I'm modyfying pixel data in a C array, copying to NSData,
and then slapping a BMP file header on that for a UIImage.
It seems like it should be easier and quicker to access bytes in the
NSData array, and not have to copy the C array to the NSData array
each time the array is modified.
No need for code, what I'm doing works,
but the NSData class reference looks a little sad when going to access
the bytes in a for loop.
(Try to get useless demo in App Store)
Cheers, Art.
Seemingly the NSData object is kind of tight with giving up the data.
Is there are way to index a single byte as you would in a C array
without check in range, or some other slowy downy sounding thing?
Currently, I'm modyfying pixel data in a C array, copying to NSData,
and then slapping a BMP file header on that for a UIImage.
It seems like it should be easier and quicker to access bytes in the
NSData array, and not have to copy the C array to the NSData array
each time the array is modified.
No need for code, what I'm doing works,
but the NSData class reference looks a little sad when going to access
the bytes in a for loop.
(Try to get useless demo in App Store)
Cheers, Art.