packer-0.1.1: Fast byte serializer and unserializer

Portabilityunknown
Stabilityexperimental
MaintainerVincent Hanquez <vincent@snarc.org>
Safe HaskellNone

Data.Packer.IO

Description

 

Synopsis

Documentation

runPackingIO :: Int -> Packing () -> IO ByteStringSource

Run packing with a buffer created internally with a monadic action and return the bytestring

runUnpackingIO :: ByteString -> Unpacking a -> IO aSource

Unpack a bytestring using a monadic unpack action in the IO monad.

tryUnpackingIO :: ByteString -> Unpacking a -> IO (Either SomeException a)Source

Similar to runUnpackingIO but catch exception and return an Either type.