[Haskell-cafe] Reading Word16, Word32, etc. from a FPS
Donald Bruce Stewart
dons at cse.unsw.edu.au
Sun Oct 2 08:03:32 EDT 2005
> How would I implement reading of big/little-endian shorts, longs,
> floats, etc. from a fast packed string?
Have a look at Binary.hs. You've just got bytes in the FastStrings, so
Data.Bits might help too. Binary.hs is in GHC's utils/, iirc. Possibly
New Binary would also be useful (the cabalised library).
Good idea btw!
More information about the Haskell-Cafe