开发者

how to reverse fill each entity of byte array?

开发者 https://www.devze.com 2022-12-29 13:52 出处:网络
i want to prepare a byte buffer as a upd p开发者_Python百科acket i want to fill each value in reverse order how can i do so in ansi c

i want to prepare a byte buffer as a upd p开发者_Python百科acket i want to fill each value in reverse order how can i do so in ansi c

i have to do this on windows system,


Assuming you are doing this so it will work on any receiving system: Use htonl() on each byte in your buffer when sending and ntohl() on each received byte.

0

精彩评论

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