A byte is neither hex nor ascii nor octal nor int nor float, etc, they are just different ways to display and/or think about a byte(s). The way NSLog
displays objects is dictated by the way the objects's description
method is written. Thus NSLog
of NSData
and NSString
display the same bytes differently.
If you want access to the bytes in an NSData
just access them directly: theData.bytes, no need to
memcpy`.
Lastly and most importantly: What are you trying to accomplish?
New developers are well served by getting a good book on the "C" language and studying it--that is what I did.