原始文献 / 论坛帖 / Re: Big endian code problems
Re: Big endian code problems
Bitcointalk · 2010-08-29 22:14:36 UTC
AuthorSatoshi Nakamoto
TitleRe: Big endian code problems
Date2010-08-29 22:14:36 UTC
ForumBitcointalk · 原文
代码通篇都假设小端字节序,写的时候就没打算移植到大端。每个通过网络发送的整数都得做字节交换,代码里还有几十处别的地方也要改。不值得为此增加代码臃肿。
反正大端字节序正在被淘汰。
英文原文
The code assumes little-endian throughout and was written with the intention of never being ported to big-endian. Every integer that is sent over the network would have to be byte swapped, in addition to many dozens of other places in code. It would not be worth the extra sourcecode bloat.
Big-endian is on its way out anyway.
