streamly-0.8.2: Dataflow programming and declarative concurrency
Copyright(c) 2019 Composewell Technologies
LicenseBSD3
Maintainerstreamly@composewell.com
Stabilityexperimental
PortabilityGHC
Safe HaskellNone
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
Eq IOVec Source # 
Instance details

Defined in Streamly.Internal.System.IOVec.Type

Methods

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

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

Show IOVec Source # 
Instance details

Defined in Streamly.Internal.System.IOVec.Type

Methods

showsPrec :: Int -> IOVec -> ShowS #

show :: IOVec -> String #

showList :: [IOVec] -> ShowS #

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 () #

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