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 (ForeignPtr InputVector)
- newZeroInputVector :: MonadIO m => m InputVector
- noInputVector :: Maybe InputVector
- inputVectorBuffer :: AttrLabelProxy "buffer"
- inputVectorClearBuffer :: MonadIO m => InputVector -> m ()
- inputVectorReadBuffer :: MonadIO m => InputVector -> m (Ptr ())
- inputVectorWriteBuffer :: MonadIO m => InputVector -> Ptr () -> m ()
- inputVectorReadSize :: MonadIO m => InputVector -> m Word64
- inputVectorSize :: AttrLabelProxy "size"
- inputVectorWriteSize :: MonadIO m => InputVector -> Word64 -> m ()
Exported types
newtype InputVector Source
WrappedPtr InputVector | |
(~) AttrOpTag tag AttrSet => Constructible InputVector tag | |
((~) * info (ResolveInputVectorMethod t InputVector), MethodInfo * info InputVector p) => IsLabelProxy t (InputVector -> p) | |
type AttributeList InputVector |
newZeroInputVector :: MonadIO m => m InputVector Source
Construct a InputVector
struct initialized to zero.
Properties
Buffer
inputVectorBuffer :: AttrLabelProxy "buffer" Source
inputVectorClearBuffer :: MonadIO m => InputVector -> m () Source
inputVectorReadBuffer :: MonadIO m => InputVector -> m (Ptr ()) Source
inputVectorWriteBuffer :: MonadIO m => InputVector -> Ptr () -> m () Source
Size
inputVectorReadSize :: MonadIO m => InputVector -> m Word64 Source
inputVectorSize :: AttrLabelProxy "size" Source
inputVectorWriteSize :: MonadIO m => InputVector -> Word64 -> m () Source