Skip to content

Exposing the endianness of the host system in System.Info

Knowing the endianness of your system is useful in cases where endianness matters, such as network serialization protocols, which are big-endian by default (network order).

I would like to suggest that the host system's endianness is exported by the build system from Hadrian to base via CPP, so that it is a runtime constant located in System.Info

I am willing to submit a patch and go through the CLC process.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information