Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
Structure used for scatter/gather data input.
You generally pass in an array of GInputVectors
and the operation will store the read data starting in the
first buffer, switching to the next as needed.
- newtype InputVector = InputVector (ManagedPtr InputVector)
- newZeroInputVector :: MonadIO m => m InputVector
- noInputVector :: Maybe InputVector
- clearInputVectorBuffer :: MonadIO m => InputVector -> m ()
- getInputVectorBuffer :: MonadIO m => InputVector -> m (Ptr ())
- setInputVectorBuffer :: MonadIO m => InputVector -> Ptr () -> m ()
- getInputVectorSize :: MonadIO m => InputVector -> m Word64
- setInputVectorSize :: MonadIO m => InputVector -> Word64 -> m ()
Exported types
newtype InputVector Source #
WrappedPtr InputVector Source # | |
(~) AttrOpTag tag AttrSet => Constructible InputVector tag Source # | |
newZeroInputVector :: MonadIO m => m InputVector Source #
Construct a InputVector
struct initialized to zero.
Properties
buffer
clearInputVectorBuffer :: MonadIO m => InputVector -> m () Source #
getInputVectorBuffer :: MonadIO m => InputVector -> m (Ptr ()) Source #
setInputVectorBuffer :: MonadIO m => InputVector -> Ptr () -> m () Source #
size
getInputVectorSize :: MonadIO m => InputVector -> m Word64 Source #
setInputVectorSize :: MonadIO m => InputVector -> Word64 -> m () Source #