[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mono-devel-list
Subject:    Re: [Mono-dev] Endianess/serialization questions...
From:       Steven Shaw <steshaw () gmail ! com>
Date:       2005-12-30 23:43:08
Message-ID: 1ba9d4a00512301543u11080ae9jfbaf6aef9c571830 () mail ! gmail ! com
[Download RAW message or body]

On 12/30/05, Kornél Pál <kornelpal@hotmail.com> wrote:
> Endianness depends on the target architecture. According to CLI specs you
> cannot assume endianness. If you want to write endian-safe code use shift
> operators (<< and >>) to convert between byte arrays and integers and use
> little-endian in files. Note that BinaryReader and BinaryWriter use
> little-endian because they use shift operators.

I think this sort of answers the question.

I assume the poster is using Remoting. If using SoapFormatter I assume
that you are safe from endianess problems. If you are using
BinaryFormatter, I imagine that it uses BinaryReader/Writer and you
are also safe as it is required to be little endian.

Also possible problem could come from encoded byte arrays that your
objects reference. Can't imagine that being a problem in practise.

Cheers,
Steve.
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic