BYTE-order, as the name implies the order of bytes, and then say two more than a byte type of data in memory storage order (a byte of data of course there is no need to talk about the order of the problem). In fact, most people in the actual
Big-endian (large byte sequence, high byte order)Little-endian (small byte order, low byte order)Host byte orderNetwork byte orderJava byte order1. Big-endian, Little-endian are related to multibyte-type data such as the Int,short,long type, but
Communication between programs is actually sending and receiving data streams. We generally regard bytes as the smallest unit of data. Of course, a byte also contains 8 bits ). In a 32-bit processor, the "font length" is 32 bits, that is, 4 bytes.
I. Network byte order and host byte order1. Big-endian and small-end storageBig Endian: High-low address. Conform to the normal thinking of human beings. The network byte order uses the big-endian (the network transmits is the byte stream).Small end
I. Basic Concepts
Bit concept: in a computer, a 0 or 1 is called a bit ).
Byte: the continuous eight bits are called one byte, And the byte is the minimum unit that can be processed separately by the computer. In bytesIt is the basic unit to explain
The recent communication between C + + sockets and Java sockets involves the transmission of integer floating-point numbers. You need to restore the data from the byte array and look up some information. Summary for example the following1. Machine
Recently in the C + + socket and the Java Socket Communication program, involving the transmission of integer floating point number, need to restore data from a byte array, check some information, summarized as follows1. Machine representations of
Byte order big-Endian & Little-Endian2007-06-19
1. What is byte order?It refers to the order in which data is stored in the memory. Generally, a storage unit is 1 byte by default, and a logical data such as float is 4 bytes, the order of
The concept of flowThe Java program completes the input/output through the stream. Flow is the abstraction of production or consumption information, and streams are linked to physical devices through Java input and output, although the physical
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.