Copyright | (c) Piyush P Kurur 2019 |
---|---|
License | Apache-2.0 OR BSD-3-Clause |
Maintainer | Piyush P Kurur <ppk@iitpkd.ac.in> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- processByteSource :: ByteSource src => src -> Internals -> IO ()
- processBuffer :: KnownNat n => Buffer n -> Internals -> IO ()
- updateCxt :: (KnownNat n, ByteSource src) => src -> Cxt n -> IO ()
- finaliseCxt :: KnownNat n => Cxt n -> IO ()
- transform :: ByteString -> Internals -> IO ByteString
Documentation
processByteSource :: ByteSource src => src -> Internals -> IO () Source #
Process the complete byte source using the internals of the primitive.
processBuffer :: KnownNat n => Buffer n -> Internals -> IO () Source #
Process the contents of the given buffer using the processBlocks action.
updateCxt :: (KnownNat n, ByteSource src) => src -> Cxt n -> IO () Source #
Update the context with the data from the source. This will process any complete blocks on the way so that
finaliseCxt :: KnownNat n => Cxt n -> IO () Source #
Finalise the computation by making use of what ever data is left in the buffer.
transform :: ByteString -> Internals -> IO ByteString Source #
Transform the given bytestring. Hint: use this very rearely.