streaming-png-0.1.0.0: Perfectly streaming PNG image decoding

Copyright(c) Bradley Hardy 2016
LicenseLGPL3
Maintainerbradleyhardy@live.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Streaming.CRC

Description

 

Synopsis

Documentation

calcCRC32 :: Monad m => ByteString m r -> m (Of Word32 r) Source

Calculate the CRC of a streaming ByteString, consuming the input and returning the CRC paired with the ByteString's return value.

appendCRC32 :: Monad m => ByteString m r -> ByteString m r Source

If the input stream is finite, calculate its CRC and append it to the end (maintaining streaming). The is the identity function for infinite inputs.