Network byte order and host byte order)

Source: Internet
Author: User

In network transmission, the big-Endian sequence is used.0x0a0b0c0d The transmission order is0a 0b 0C 0d Therefore, big-Endian acts as the network byte order, and little-Endian acts as the host byte order

Why does x86 storage use little-Endian? At first I thought it was very convenient for bit operations, especially displacement operations, but it was also convenient for big-Endian, it is nothing more than the difference between the left shift and the right shift, but the advantage of little-Endian is that the storage location does not need to be changed when the unsigned char/short/INT/long type is converted.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.