开发者

convert ByteArray to NSData

开发者 https://www.devze.com 2023-02-15 21:34 出处:网络
I want convert ByteArray into NSData How can i do开发者_如何学运维? please Help meI assume what you\'re calling a ByteArray is actually a \"char *\", or more generally a pointer to some data.

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

精彩评论

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