Copyright | (c) 2019 Composewell Technologies |
---|---|
License | BSD3 |
Maintainer | streamly@composewell.com |
Stability | experimental |
Portability | GHC |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Low level IO routines interfacing the operating system.
Synopsis
- data IOVec = IOVec {}
- c_writev :: CInt -> Ptr IOVec -> CInt -> IO CSsize
- c_safe_writev :: CInt -> Ptr IOVec -> CInt -> IO CSsize
- groupIOVecsOf :: MonadIO m => Int -> Int -> Stream m (Array a) -> Stream m (Array IOVec)
- groupIOVecsOfMut :: MonadIO m => Int -> Int -> Stream m (Array a) -> Stream m (Array IOVec)
Documentation
Instances
Storable IOVec Source # | |
Show IOVec Source # | |
Eq IOVec Source # | |
groupIOVecsOf :: MonadIO m => Int -> Int -> Stream m (Array a) -> Stream m (Array IOVec) Source #
groupIOVecsOf maxBytes maxEntries
groups arrays in the incoming stream
to create a stream of IOVec
arrays with a maximum of maxBytes
bytes in
each array and a maximum of maxEntries
entries in each array.
Since: 0.7.0
groupIOVecsOfMut :: MonadIO m => Int -> Int -> Stream m (Array a) -> Stream m (Array IOVec) Source #
groupIOVecsOf maxBytes maxEntries
groups arrays in the incoming stream
to create a stream of IOVec
arrays with a maximum of maxBytes
bytes in
each array and a maximum of maxEntries
entries in each array.
Since: 0.7.0