| 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
Contents
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 (ManagedPtr InputVector)
- newZeroInputVector :: MonadIO m => m InputVector
- noInputVector :: Maybe InputVector
- clearInputVectorBuffer :: MonadIO m => InputVector -> m ()
- getInputVectorBuffer :: MonadIO m => InputVector -> m (Ptr ())
- inputVector_buffer :: AttrLabelProxy "buffer"
- setInputVectorBuffer :: MonadIO m => InputVector -> Ptr () -> m ()
- getInputVectorSize :: MonadIO m => InputVector -> m Word64
- inputVector_size :: AttrLabelProxy "size"
- setInputVectorSize :: MonadIO m => InputVector -> Word64 -> m ()
Exported types
newtype InputVector Source #
Constructors
| InputVector (ManagedPtr 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 #
inputVector_buffer :: AttrLabelProxy "buffer" Source #
setInputVectorBuffer :: MonadIO m => InputVector -> Ptr () -> m () Source #
size
getInputVectorSize :: MonadIO m => InputVector -> m Word64 Source #
inputVector_size :: AttrLabelProxy "size" Source #
setInputVectorSize :: MonadIO m => InputVector -> Word64 -> m () Source #