Copyright | 2018 Luis Pedro Coelho |
---|---|
License | MIT |
Maintainer | luis@luispedro.org |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Read/write Storable vectors
Synopsis
- writeStorableV :: forall m a. (MonadIO m, Monad m, Storable a) => ConduitT (Vector a) ByteString m ()
- readStorableV :: forall m a. (MonadIO m, Storable a) => Int -> ConduitM ByteString (Vector a) m ()
Documentation
writeStorableV :: forall m a. (MonadIO m, Monad m, Storable a) => ConduitT (Vector a) ByteString m () Source #
readStorableV :: forall m a. (MonadIO m, Storable a) => Int -> ConduitM ByteString (Vector a) m () Source #
read a Storable vector
This expects the same format as the in-memory vector.
This will break up the incoming data into vectors of the given size. The last vector may be smaller if there is not enough data. Any unconsumed Bytes will be leftover for the next conduit in the pipeline.
See writeStorableV