How to get the binary respentation of the Int/Double.
Hi, I am wondering how to get the binary respentation of the Int/Double. So I can save the integer as the binary data so that the C program can read it from the file. Thanks for your help. Haihua
On 2008 Oct 28, at 10:38, haihualin wrote:
I am wondering how to get the binary respentation of the Int/Double. So I can save the integer as the binary data so that the C program can read it from the file.
The Binary package on Hackage (http://hackage.haskell.org) allows you to serialize Haskell data in any form including C-compatible binary output. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH
participants (2)
-
Brandon S. Allbery KF8NH -
haihualin