endian(计算机术语):指多字节数据在内存中存放的字节顺序。常见有 big-endian(大端序) 与 little-endian(小端序)。(在不同处理器架构、网络协议、二进制文件格式中很常见。)
Many network protocols use big-endian byte order, so you must check the endian setting.
许多网络协议使用大端字节序,因此你必须检查端序设置。
If you read the file on a different CPU architecture, the numbers may be wrong unless you handle endian conversion carefully.
如果你在不同的 CPU 架构上读取该文件,除非你仔细处理端序转换,否则数值可能会出错。
/ˈɛndiən/
该词由 end(末端) + -ian 构成,最早在计算机领域流行源于 Danny Cohen 在讨论字节序时借用《格列佛游记》中 Big-Endian(大端派) 与 Little-Endian(小端派) 的讽喻,用来形象地指代“从哪一端开始”的顺序差异。