Big-Endian and Little-Endian
2015-09-04 23:56
453 查看
Wikipedia has a very clear graph and tells me that "big-endian" and "little-endian" comes from Gulliver’s Travels
1. Big-Endian, Little-Endian is not only for bit level, but most likely people talk about it on byte level. The network (big-endian) and host (any) conversion is quite popular on Internet.
2. Some terms
a) Most-Significant-Byte (MSB): High byte
b) Lest-Significant-Byte (LSB): Low byte
c) Bit Endianness or Bit-level Endianness: very rare used
3. Little Endian is more popular: Windows, Linux on x86/64, BSD/FreeBSD on X86/64, iOS on ARM, MAC OS on x86/64
4. POSIX has defined some functions to do the network/host converting: ntohl(), ntohs(), htonl(), htons() in arpa/inet.h
--<>---- The END ------<>--
1. Big-Endian, Little-Endian is not only for bit level, but most likely people talk about it on byte level. The network (big-endian) and host (any) conversion is quite popular on Internet.
2. Some terms
a) Most-Significant-Byte (MSB): High byte
b) Lest-Significant-Byte (LSB): Low byte
c) Bit Endianness or Bit-level Endianness: very rare used
3. Little Endian is more popular: Windows, Linux on x86/64, BSD/FreeBSD on X86/64, iOS on ARM, MAC OS on x86/64
4. POSIX has defined some functions to do the network/host converting: ntohl(), ntohs(), htonl(), htons() in arpa/inet.h
--<>---- The END ------<>--
相关文章推荐
- 一句话Design Pattern:Decorator
- 一句话Design Pattern:Observer
- 一句话Design Pattern:Strategy
- 我的“一句话Design Pattern”
- 触发器示例
- 用静态工厂方法代替构造器
- Atitit.进程管理常用api
- Collections分析之SynchronizedList
- Atitit.进程管理常用api
- 二分查找
- 开学
- POJ 3422 Kaka's Matrix Travels(模型转化 区间K覆盖问题)
- Atitit.进程管理常用api
- 设计模式之UML类图的常见关系
- MatLab函数:pol2cart()
- Boost::Asio库详解
- composer github.com 的源
- Linux系统中RPS/RFS介绍
- hdu 2883 kebab(最大流)
- IIS注册asp.net 4.0