| Copyright | (c) Bradley Hardy 2016 |
|---|---|
| License | LGPL3 |
| Maintainer | bradleyhardy@live.com |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Streaming.CRC
Description
- calcCRC32 :: Monad m => ByteString m r -> m (Of Word32 r)
- appendCRC32 :: Monad m => ByteString m r -> ByteString m r
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.