XiaoKL

iOS.big-endian

Endianness (字节序)

 

 

"Endianness is the order of the bytes comprising a digital word in computer memory.

It also describes the order of byte transmission over a digital link." Ref[5]

 

 


Reference 

1. iOS/MacOS中判断big-endian/little-endian

Xcode的文档

Byte-Order Utilities Reference

"A platform stores values either in big-endian or little-endian format. On big-endian machines,

such as PowerPC machines, values are stored with the most-significant bytes first in memory;

on little-endian machines, such as Pentium machines, values are stored with the least-significant bytes first."

CFByteOrderGetCurrent()

 

2. big-endian/little-endian分别指的什么?

http://www.webopedia.com/TERM/B/big_endian.html

 

3. 关于字节序

http://zh.wikipedia.org/wiki/字节序

网络字节序: TCP/IP协议要求 TCP/IP中的字段要使用 大端序(big-endian), 即Ip addres,port等需要使用大端序,

这种字节序称为网络字节序。但是TCP中数据包中采用哪种字节序完全有程序设计人员决定。

 

4. How to transform uint32_t value into hex?

 

5. Endianness

https://en.wikipedia.org/wiki/Endianness

 

6. is_little_endian_byUnion

https://godbolt.org/g/DAafKo

 

7. What is Endianness? Big-Endian vs Little-Endian Explained with Examples

https://www.freecodecamp.org/news/what-is-endianness-big-endian-vs-little-endian/

 

8. What is endianness?

https://www.embeddedcomputing.com/technology/software-and-os/endianness

 

9. Writing endian-independent code in C

https://developer.ibm.com/technologies/systems/articles/au-endianc/

 

posted on 2013-02-27 14:54  XiaoKL  阅读(489)  评论(0编辑  收藏  举报

导航