Re: [Haskell-cafe] Reading/writing packed bytes from file

2007-06-20 Thread Duncan Coutts
On Wed, 2007-06-20 at 09:54 -0400, Jefferson Heard wrote: > What about the Data.Binary module from the Hackage database? I can call > C, no problem, but I hate to do something that's already been done. The current version of the binary package does everything you want *except* for reading ieee fl

Re: [Haskell-cafe] Reading/writing packed bytes from file

2007-06-20 Thread Bulat Ziganshin
Hello Jefferson, Wednesday, June 20, 2007, 12:20:28 AM, you wrote: > 4-byte int (count), > (count) 2-byte unsigned shorts, > (count) 4-byte floats using my Streams package ( http://haskell.org/haskellwiki/Library/AltBinary ): import Data.AltBinary readall recordcount h = do replicateM recordc

Re: [Haskell-cafe] Reading/writing packed bytes from file

2007-06-20 Thread Jefferson Heard
What about the Data.Binary module from the Hackage database? I can call C, no problem, but I hate to do something that's already been done. On Wed, 2007-06-20 at 12:02 +1000, Donald Bruce Stewart wrote: > jeff: > > I've read the documentation for some of the marshalling packages out > > there for

Re: [Haskell-cafe] Reading/writing packed bytes from file

2007-06-19 Thread Donald Bruce Stewart
jeff: > I've read the documentation for some of the marshalling packages out > there for Haskell, and I'm left confused as to which one I should be > using and how to actually do what I want to do. I have a file, a > little over 2gb, of packed data in the format > > (recordcount) records of: >

[Haskell-cafe] Reading/writing packed bytes from file

2007-06-19 Thread Jefferson Heard
I've read the documentation for some of the marshalling packages out there for Haskell, and I'm left confused as to which one I should be using and how to actually do what I want to do. I have a file, a little over 2gb, of packed data in the format (recordcount) records of: 4-byte int (count),