Which .Net-compatible architectures are not little-endian?

后端 未结 6 1891
醉梦人生
醉梦人生 2021-01-20 11:46

The BitConverter class has a field IsLittleEndian which, according to the documentation:

Indicates the byte order (\"endianness\") in which data is st

6条回答
  •  庸人自扰
    2021-01-20 12:19

    If you're MSIL you don't get that guarantee.

    Even if it's true for all current architectures, you have no guarantee I don't port .NET to Alpha or PDP11 tomorrow.

提交回复
热议问题