Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Support for CRC
Synopsis
- newtype CRC = CRC {}
- computeCRC ∷ ∀ a. CRC32 a ⇒ a → CRC
- initCRC ∷ CRC
- updateCRC ∷ ∀ a. CRC32 a ⇒ a → CRC → CRC
- hGetAllAtCRC ∷ ∀ m h. Monad m ⇒ HasFS m h → Handle h → AbsOffset → m (ByteString, CRC)
- hGetExactlyAtCRC ∷ ∀ m h. (HasCallStack, MonadThrow m) ⇒ HasFS m h → Handle h → Word64 → AbsOffset → m (ByteString, CRC)
- hPutAllCRC ∷ ∀ m h. (HasCallStack, Monad m) ⇒ HasFS m h → Handle h → ByteString → m (Word64, CRC)
Wrap digest functionality
computeCRC ∷ ∀ a. CRC32 a ⇒ a → CRC Source #
File system functions with CRC functionality
∷ ∀ m h. Monad m | |
⇒ HasFS m h | |
→ Handle h | |
→ AbsOffset | The offset at which to read. |
→ m (ByteString, CRC) |
Variation on hGetAllAt
that also computes a CRC
∷ ∀ m h. (HasCallStack, MonadThrow m) | |
⇒ HasFS m h | |
→ Handle h | |
→ Word64 | The number of bytes to read. |
→ AbsOffset | The offset at which to read. |
→ m (ByteString, CRC) |
Variation on hGetExactlyAt
that also computes a CRC
hPutAllCRC ∷ ∀ m h. (HasCallStack, Monad m) ⇒ HasFS m h → Handle h → ByteString → m (Word64, CRC) Source #
Variation on hPutAll
that also computes a CRC