| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gst.Structs.MapInfo
Description
A structure containing the result of a map operation such as
memoryMap. It contains the data and size.
Synopsis
- newtype MapInfo = MapInfo (ManagedPtr MapInfo)
- newZeroMapInfo :: MonadIO m => m MapInfo
- noMapInfo :: Maybe MapInfo
- getMapInfoFlags :: MonadIO m => MapInfo -> m [MapFlags]
- setMapInfoFlags :: MonadIO m => MapInfo -> [MapFlags] -> m ()
- getMapInfoMaxsize :: MonadIO m => MapInfo -> m Word64
- setMapInfoMaxsize :: MonadIO m => MapInfo -> Word64 -> m ()
- clearMapInfoMemory :: MonadIO m => MapInfo -> m ()
- getMapInfoMemory :: MonadIO m => MapInfo -> m (Maybe Memory)
- setMapInfoMemory :: MonadIO m => MapInfo -> Ptr Memory -> m ()
- getMapInfoSize :: MonadIO m => MapInfo -> m Word64
- setMapInfoSize :: MonadIO m => MapInfo -> Word64 -> m ()
Exported types
Memory-managed wrapper type.
Constructors
| MapInfo (ManagedPtr MapInfo) |
Instances
| WrappedPtr MapInfo Source # | |
Defined in GI.Gst.Structs.MapInfo | |
| tag ~ AttrSet => Constructible MapInfo tag Source # | |
Defined in GI.Gst.Structs.MapInfo | |
Properties
flags
flags used when mapping the memory
getMapInfoFlags :: MonadIO m => MapInfo -> m [MapFlags] Source #
Get the value of the “flags” field.
When overloading is enabled, this is equivalent to
get mapInfo #flags
setMapInfoFlags :: MonadIO m => MapInfo -> [MapFlags] -> m () Source #
Set the value of the “flags” field.
When overloading is enabled, this is equivalent to
setmapInfo [ #flags:=value ]
maxsize
the maximum bytes in data
getMapInfoMaxsize :: MonadIO m => MapInfo -> m Word64 Source #
Get the value of the “maxsize” field.
When overloading is enabled, this is equivalent to
get mapInfo #maxsize
setMapInfoMaxsize :: MonadIO m => MapInfo -> Word64 -> m () Source #
Set the value of the “maxsize” field.
When overloading is enabled, this is equivalent to
setmapInfo [ #maxsize:=value ]
memory
a pointer to the mapped memory
clearMapInfoMemory :: MonadIO m => MapInfo -> m () Source #
Set the value of the “memory” field to Nothing.
When overloading is enabled, this is equivalent to
clear #memory
getMapInfoMemory :: MonadIO m => MapInfo -> m (Maybe Memory) Source #
Get the value of the “memory” field.
When overloading is enabled, this is equivalent to
get mapInfo #memory
setMapInfoMemory :: MonadIO m => MapInfo -> Ptr Memory -> m () Source #
Set the value of the “memory” field.
When overloading is enabled, this is equivalent to
setmapInfo [ #memory:=value ]
size
the valid size in data
getMapInfoSize :: MonadIO m => MapInfo -> m Word64 Source #
Get the value of the “size” field.
When overloading is enabled, this is equivalent to
get mapInfo #size
setMapInfoSize :: MonadIO m => MapInfo -> Word64 -> m () Source #
Set the value of the “size” field.
When overloading is enabled, this is equivalent to
setmapInfo [ #size:=value ]