[Mono-dev] Removing unsafe code in BitConverter and speedups
Avery Pennarun
apenwarr at gmail.com
Mon May 12 12:36:53 EDT 2008
On 5/12/08, Robert Jordan <robertj at gmx.net> wrote:
> > Side question: is there a sort of BitConverter that *always* returns
> > big-endian or little-endian, as requested? dbus-sharp (at least the
> > version I'm looking at) resorts to unsafe code to do this, which is
> > pretty gross. I see System.Net.IPAddress has methods like
> > HostToNetworkOrder() which will guarantee big endianness, but you
> > can't guarantee little endianness that way.
>
> There is one written by Miguel:
>
> http://www.mono-project.com/Mono_DataConvert
Awesome, thanks.
Avery
More information about the Mono-devel-list
mailing list