2017年3月21日

Big Endian  和 Little Endian 模式的区别

摘要: 谈到字节序的问题,必然牵涉到两大CPU派系。那就是Motorola的PowerPC系列CPU和Intel的x86系列CPU。PowerPC系列采用big endian方式存储数据,而x86系列则采用little endian方式存储数据。那么究竟什么是big endian,什么又是little en 阅读全文

posted @ 2017-03-21 08:46 Honey_Badger 阅读(17980) 评论(1) 推荐(1) 编辑

ntohs, ntohl, htons,htonl对比

摘要: ntohs =net to host short int 16位htons=host to net short int 16位ntohl =net to host long int 32位htonl=host to net long int 32位 网络字节顺序NBO(Network Byte Or 阅读全文

posted @ 2017-03-21 08:37 Honey_Badger 阅读(364) 评论(0) 推荐(0) 编辑

导航

github