开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜