ByteStream
Project Status: beta, actively developed
ByteStream is like NHC Binary library – it provides marshalling of Haskell objects to byte stream and restoring them back. Features:
· light-fast speed, but only x86 processors compatible (used unaligned memory access)
· using callbacks to read and write data (in large chunks) to byte stream, so it can go on-the-fly to memory, file or, for example, sent to another PC
· using variable-length format for Integers and list lengths (1-9 bytes, dependent on value)
Example of very basic usage:
ByteStream.writeFile “test” [1..1000::Integer]
(restored::[Integer]) <- ByteStream.readFile “test”
Download page: http://freearc.narod.ru