[Haskell-cafe] NewBinary on Ptrs

Bulat Ziganshin bulatz at HotPOP.com
Wed Dec 28 05:08:42 EST 2005


Hello Pupeno,

Wednesday, December 28, 2005, 6:27:54 AM, you wrote:

P> My question now is how to turn a Ptr into a BinHandle to use NewBinary on it,
P> or is there another way to do it ?

no. you need to write this self. see at implementation of readBinMem,
it's closest code to what you need

afair, Jeremy uses BE order for bytes, but LE order for bits inside
bytes. but i'm not sure - test his library on parsing your real data


-- 
Best regards,
 Bulat                            mailto:bulatz at HotPOP.com





More information about the Haskell-Cafe mailing list