[Mono-list] Marshalling a big-endian byte collection into a struct in order to pull out values

Jb Evain jb at nurv.fr
Tue Mar 30 12:01:37 EDT 2010


Hey Pat,

> Basically, I am receiving an array of bytes which represent a number of
> different types (int32, int16, string, etc) in big-endian (network) byte
> order and I would like an easy way to pull out the individual values. There
> is a way to do this with bytes that match the endianness of the host machine
> (which is always little-endian in my case), but I have yet to find a
> big-endian method which is equally simple and elegant.

We have:

http://www.mono-project.com/Mono_DataConvert

-- 
Jb Evain  <jb at nurv.fr>


More information about the Mono-list mailing list