
14 May
2009
14 May
'09
11:40 p.m.
leimy2k:
I actually need little endian encoding... wondering if anyone else hit this with Data.Binary. (because I'm working with Bell Lab's 9P protocol which does encode things on the network in little-endian order).
Anyone got some "tricks" for this?
Yes! There are big, little and host-endian primitives in the Get/Put monads. http://hackage.haskell.org/packages/archive/binary/0.5.0.1/doc/html/Data-Bin... You can use these to build encoders directly. Cheers, Don