[Mono-dev] Are there any endian issues with unsafe code?

Jb Evain mono at evain.net
Tue Nov 8 14:00:20 EST 2005


On Nov 8, 2005, at 3:29 AM, Brion Vibber wrote:
> I'm not sure if there's a standard way of asking the runtime for  
> the processor's endianness, but it's easy enough to check by poking  
> at a known int value with a byte pointer.

You could use System.BitConverter::IsLittleEndian


More information about the Mono-devel-list mailing list