Reading Word16, Word32, etc. from a FPS

2 Oct
2005
2 Oct
'05
11:01 a.m.
Folks, How would I implement reading of big/little-endian shorts, longs, floats, etc. from a fast packed string? Thanks, Joel -- http://wagerlabs.com/

2 Oct
2 Oct
12:03 p.m.
joelr1:
Folks,
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! -- Don
7218
Age (days ago)
7218
Last active (days ago)
1 comments
2 participants
participants (2)
-
dons@cse.unsw.edu.au
-
Joel Reymont