开发者

iphone sdk integer to network short and vice versa

开发者 https://www.devze.com 2023-01-16 13:25 出处:网络
Is there a way to convert an integer into a network short integer on the iphone? Also, how do I convert a network short to a host short. In c, it\'s htons and ntoh开发者_C百科s

Is there a way to convert an integer into a network short integer on the iphone? Also, how do I convert a network short to a host short. In c, it's htons and ntoh开发者_C百科s

Thanks


You're programming in C on the iPhone. You can just use those functions.

There are also the CoreFoundation Byte-Order Utilities.

0

精彩评论

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

关注公众号