Endianmerkinnät
Endianmerkinnät, often translated as endianness, refers to the order in which bytes are arranged in computer memory when representing a multi-byte data type, such as a 16-bit integer or a 32-bit floating-point number. There are two primary types of endianness: big-endian and little-endian.
In a big-endian system, the most significant byte (the byte representing the largest value) is stored at
For example, consider the hexadecimal number 0x12345678. In a big-endian system, it would be stored in memory
The choice of endianness affects how data is read and written, particularly when transferring data between