streamly-0.8.3: Dataflow programming and declarative concurrency
Copyright(c) 2019 Composewell Technologies
LicenseBSD3
Maintainerstreamly@composewell.com
Stabilityexperimental
PortabilityGHC
Safe HaskellSafe-Inferred
LanguageHaskell2010

Streamly.Internal.System.IOVec

Description

Low level IO routines interfacing the operating system.

Synopsis

Documentation

data IOVec Source #

Constructors

IOVec 

Fields

Instances

Instances details
Storable IOVec Source # 
Instance details

Defined in Streamly.Internal.System.IOVec.Type

Methods

sizeOf :: IOVec -> Int #

alignment :: IOVec -> Int #

peekElemOff :: Ptr IOVec -> Int -> IO IOVec #

pokeElemOff :: Ptr IOVec -> Int -> IOVec -> IO () #

peekByteOff :: Ptr b -> Int -> IO IOVec #

pokeByteOff :: Ptr b -> Int -> IOVec -> IO () #

peek :: Ptr IOVec -> IO IOVec #

poke :: Ptr IOVec -> IOVec -> IO () #

Show IOVec Source # 
Instance details

Defined in Streamly.Internal.System.IOVec.Type

Methods

showsPrec :: Int -> IOVec -> ShowS #

show :: IOVec -> String #

showList :: [IOVec] -> ShowS #

Eq IOVec Source # 
Instance details

Defined in Streamly.Internal.System.IOVec.Type

Methods

(==) :: IOVec -> IOVec -> Bool #

(/=) :: IOVec -> IOVec -> Bool #

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