Tags

2 pages

Byte-Order

Host byte, network byte, observe directly through debugger

Throughout the history of computer development, there has been no unified standard for data storage. There are two commonly used rules for byte arrangement. For example, if the low-order bits of a multi-digit number are placed at smaller addresses and the high-order bits are placed at larger addresses, it is referred to as little-endian; conversely, it is called big-endian. In network applications, byte order is a factor that must be considered because different types of machines may adopt different standards, so they are all converted according to the network standard. According to reading habits, big-endian byte order is more consistent with the left-to-right reading order.