字节序是指定义的数组或内存中的顺序还是实际使用的内存?

Does endianness refer to ordering within a defined array or memory or also the actual memory used?

我很难用文字表达我的问题,但我想我可以很简单地用视觉表达它。存储字符串abcd,Big Endian和Little Endian的区别是这样的:

memory address  | 0 | 1 | 2 | 3 | 4 | 5 | 6 | ...
little endian   | d | c | b | a |
big endian      | a | b | c | d |

或者这样:

memory address  | 0 | 1 | 2 | 3 | 4 | 5 | 6 | ...
little endian   | d | c | b | a |
big endian                  | a | b | c | d |

我的文字尝试:"endianness" 是指特定内存中的字节顺序 "array",在这两种情况下,数组都从内存中的同一点开始,还是指排序和实际使用的数组?

字节顺序是指用于存储单个多字节数值的字节顺序。第二张图片中的 "big endian" 系统正在存储未对齐的 4 字节整数,通常没有系统会这样做。