LittleEndian

字节序和大小端

心已入冬 提交于 2019-12-06 19:32:19
<div class="Section0"> <h2>1. 字节顺序</h2> <p class="p0"><strong>字节顺序(Endian) </strong></p> <p class="p0">字节序是指多字节数据在计算机内存中存储或者网络传输时各字节的存储顺序。</p> <p class="p0">  计算机系统一般采用字节<span style="font-family: 'Times New Roman'">(Byte</span>(8 bit ))<span style="font-family: 宋体">作为逻辑寻址单位。当物理单位的长度大于</span><span style="font-family: 'Times New Roman'">1</span><span style="font-family: 宋体">个字节时,就要区分字节顺序</span><span style="font-family: 'Times New Roman'">(Byte Order</span>)<span style="font-family: 宋体">。常见的字节顺序有两种:</span><span style="font-family: 'Times New Roman'">Big Endian(High-byte first)</span><span style=