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

Robert Jordan robertj at gmx.net
Tue Nov 8 14:53:27 EST 2005


Hi Kornél,

>> BTW, BinaryReader/Writer is always little-endian. This is documented
>> on MSDN.
> 
> 
> They are expected to be little-endian but only BinaryReader.ReadUInt16 (no
> other BinaryReader or any BinaryWriter methods) is documented to be
> little-endian.:)

BinaryWriter.Write(int) has a "Remarks" section at
http://tinyurl.com/d5fua

Robert




More information about the Mono-devel-list mailing list