Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
Contains the public fields of a pointer array.
Synopsis
- newtype PtrArray = PtrArray (ManagedPtr PtrArray)
- newZeroPtrArray :: MonadIO m => m PtrArray
- getPtrArrayLen :: MonadIO m => PtrArray -> m Word32
- setPtrArrayLen :: MonadIO m => PtrArray -> Word32 -> m ()
- clearPtrArrayPdata :: MonadIO m => PtrArray -> m ()
- getPtrArrayPdata :: MonadIO m => PtrArray -> m (Ptr ())
- setPtrArrayPdata :: MonadIO m => PtrArray -> Ptr () -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq PtrArray Source # | |
IsGValue PtrArray Source # | Convert |
ManagedPtrNewtype PtrArray Source # | |
Defined in GI.GLib.Structs.PtrArray toManagedPtr :: PtrArray -> ManagedPtr PtrArray # | |
TypedObject PtrArray Source # | |
Defined in GI.GLib.Structs.PtrArray | |
GBoxed PtrArray Source # | |
Defined in GI.GLib.Structs.PtrArray | |
HasParentTypes PtrArray Source # | |
Defined in GI.GLib.Structs.PtrArray | |
tag ~ 'AttrSet => Constructible PtrArray tag Source # | |
Defined in GI.GLib.Structs.PtrArray | |
type ParentTypes PtrArray Source # | |
Defined in GI.GLib.Structs.PtrArray |
Methods
Overloaded methods
Properties
len
number of pointers in the array
getPtrArrayLen :: MonadIO m => PtrArray -> m Word32 Source #
Get the value of the “len
” field.
When overloading is enabled, this is equivalent to
get
ptrArray #len
setPtrArrayLen :: MonadIO m => PtrArray -> Word32 -> m () Source #
Set the value of the “len
” field.
When overloading is enabled, this is equivalent to
set
ptrArray [ #len:=
value ]
pdata
points to the array of pointers, which may be moved when the array grows
clearPtrArrayPdata :: MonadIO m => PtrArray -> m () Source #
Set the value of the “pdata
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#pdata
getPtrArrayPdata :: MonadIO m => PtrArray -> m (Ptr ()) Source #
Get the value of the “pdata
” field.
When overloading is enabled, this is equivalent to
get
ptrArray #pdata
setPtrArrayPdata :: MonadIO m => PtrArray -> Ptr () -> m () Source #
Set the value of the “pdata
” field.
When overloading is enabled, this is equivalent to
set
ptrArray [ #pdata:=
value ]