
3 Oct
2005
3 Oct
'05
7:33 p.m.
Joel Reymont wrote:
Are there any endian conversion routines for Haskell? I'm looking to build binary packets on top of NewBinary.Binary but my data is coming in little-endian whereas I'll need to send it out big endian.
Why don't you pull out 4 bytes and assemble them manually? Three shifts, logical ors and fromIntegrals aren't that much of a burden after all. Udo. -- The Second Law of Thermodynamics: If you think things are in a mess now, just wait! -- Jim Warner