Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
GI.Dazzle.Structs.Ring
Description
No description available in the introspection data.
Synopsis
- newtype Ring = Ring (ManagedPtr Ring)
- newZeroRing :: MonadIO m => m Ring
- ringAppendVals :: (HasCallStack, MonadIO m) => Ring -> Ptr () -> Word32 -> m Word32
- ringForeach :: (HasCallStack, MonadIO m) => Ring -> Func -> m ()
- ringRef :: (HasCallStack, MonadIO m) => Ring -> m Ring
- ringSizedNew :: (HasCallStack, MonadIO m) => Word32 -> Word32 -> DestroyNotify -> m Ring
- ringUnref :: (HasCallStack, MonadIO m) => Ring -> m ()
- getRingData :: MonadIO m => Ring -> m Word8
- setRingData :: MonadIO m => Ring -> Word8 -> m ()
- getRingLen :: MonadIO m => Ring -> m Word32
- setRingLen :: MonadIO m => Ring -> Word32 -> m ()
- getRingPos :: MonadIO m => Ring -> m Word32
- setRingPos :: MonadIO m => Ring -> Word32 -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Ring Source # | |
GBoxed Ring Source # | |
Defined in GI.Dazzle.Structs.Ring | |
ManagedPtrNewtype Ring Source # | |
Defined in GI.Dazzle.Structs.Ring Methods toManagedPtr :: Ring -> ManagedPtr Ring | |
TypedObject Ring Source # | |
Defined in GI.Dazzle.Structs.Ring | |
HasParentTypes Ring Source # | |
Defined in GI.Dazzle.Structs.Ring | |
tag ~ 'AttrSet => Constructible Ring tag Source # | |
IsGValue (Maybe Ring) Source # | Convert |
Defined in GI.Dazzle.Structs.Ring Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Ring -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Ring) | |
type ParentTypes Ring Source # | |
Defined in GI.Dazzle.Structs.Ring |
Methods
Click to display all available methods, including inherited ones
appendVals
Arguments
:: (HasCallStack, MonadIO m) | |
=> Ring |
|
-> Ptr () |
|
-> Word32 |
|
-> m Word32 | Returns: the index of the first item. |
Appends len
values located at data
.
foreach
Arguments
:: (HasCallStack, MonadIO m) | |
=> Ring |
|
-> Func |
|
-> m () |
Calls func
for every item in the Ring
starting from the most recently
inserted element to the least recently inserted.
ref
Arguments
:: (HasCallStack, MonadIO m) | |
=> Ring |
|
-> m Ring | Returns: The |
Atomically increments the reference count of ring
by one.
sizedNew
Arguments
:: (HasCallStack, MonadIO m) | |
=> Word32 |
|
-> Word32 |
|
-> DestroyNotify |
|
-> m Ring | Returns: A new |
Creates a new instance of Ring
with the given number of elements.
unref
Arguments
:: (HasCallStack, MonadIO m) | |
=> Ring |
|
-> m () |
Atomically decrements the reference count of ring
by one. When the
reference count reaches zero, the structure is freed.
Properties
data
No description available in the introspection data.
getRingData :: MonadIO m => Ring -> m Word8 Source #
Get the value of the “data
” field.
When overloading is enabled, this is equivalent to
get
ring #data
setRingData :: MonadIO m => Ring -> Word8 -> m () Source #
Set the value of the “data
” field.
When overloading is enabled, this is equivalent to
set
ring [ #data:=
value ]
len
No description available in the introspection data.
getRingLen :: MonadIO m => Ring -> m Word32 Source #
Get the value of the “len
” field.
When overloading is enabled, this is equivalent to
get
ring #len
setRingLen :: MonadIO m => Ring -> Word32 -> m () Source #
Set the value of the “len
” field.
When overloading is enabled, this is equivalent to
set
ring [ #len:=
value ]
pos
No description available in the introspection data.
getRingPos :: MonadIO m => Ring -> m Word32 Source #
Get the value of the “pos
” field.
When overloading is enabled, this is equivalent to
get
ring #pos
setRingPos :: MonadIO m => Ring -> Word32 -> m () Source #
Set the value of the “pos
” field.
When overloading is enabled, this is equivalent to
set
ring [ #pos:=
value ]