| 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 |
GI.Gio.Structs.InputVector
Description
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
- clearInputVectorBuffer :: MonadIO m => InputVector -> m ()
- getInputVectorBuffer :: MonadIO m => InputVector -> m (Ptr ())
- inputVectorBuffer :: AttrLabelProxy "buffer"
- setInputVectorBuffer :: MonadIO m => InputVector -> Ptr () -> m ()
- getInputVectorSize :: MonadIO m => InputVector -> m Word64
- inputVectorSize :: AttrLabelProxy "size"
- setInputVectorSize :: MonadIO m => InputVector -> Word64 -> m ()
Exported types
newtype InputVector Source #
Constructors
| InputVector (ForeignPtr InputVector) |
Instances
| WrappedPtr InputVector Source # | |
| (~) AttrOpTag tag AttrSet => Constructible InputVector tag Source # | |
| ((~) * info (ResolveInputVectorMethod t InputVector), MethodInfo * info InputVector p) => IsLabel t (InputVector -> p) Source # | |
| ((~) * info (ResolveInputVectorMethod t InputVector), MethodInfo * info InputVector p) => IsLabelProxy t (InputVector -> p) Source # | |
| HasAttributeList * InputVector Source # | |
| type AttributeList InputVector 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 #
inputVectorBuffer :: AttrLabelProxy "buffer" Source #
setInputVectorBuffer :: MonadIO m => InputVector -> Ptr () -> m () Source #
Size
getInputVectorSize :: MonadIO m => InputVector -> m Word64 Source #
inputVectorSize :: AttrLabelProxy "size" Source #
setInputVectorSize :: MonadIO m => InputVector -> Word64 -> m () Source #