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

Kornél Pál kornelpal at hotmail.com
Tue Nov 8 15:08:40 EST 2005


You are right, as I see all BinaryWriter.Write overloads have this remark.
Last time I only looked at the page that lists BinaryWriter.Write


----- Original Message -----
From: "Robert Jordan" <robertj at gmx.net>
To: <mono-devel-list at lists.ximian.com>
Sent: Tuesday, November 08, 2005 8:53 PM
Subject: Re: [Mono-dev] Are there any endian issues with unsafe code?

> 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
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

More information about the Mono-devel-list mailing list