[Mono-dev] Are there any endian issues with unsafe code?
Robert Jordan
robertj at gmx.net
Tue Nov 8 10:41:46 EST 2005
Kornél Pál wrote:
> Hi,
>
> Could you please run the attached test case with Mono on a big-endian
> system
> and share the results with me to get to know the exact details of managed
> endiannes.
>
BTW, BinaryReader/Writer is always little-endian. This is documented
on MSDN.
BinaryReader.ReadInt32: little-endian
Bitmap.LockBits: big-endian
Buffer.BlockCopy: big-endian
LayoutKind.Explicit: big-endian
Marshal.Copy: big-endian
Marshal.WriteByte: big-endian
Unsafe code: big-endian
Robert
More information about the Mono-devel-list
mailing list