convert ByteArray to NSData
I want convert ByteArray into NSData How can i do开发者_如何学运维? please Help me
I assume what you're calling a ByteArray is actually a "char *", or more generally a pointer to some data.
Then you'll want to do [NSData dataWithBytes:pointer]. Read http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/BinaryData/Tasks/WorkingBinaryData.html
精彩评论