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 |
A union holding one collected value.
- newtype TypeCValue = TypeCValue (ManagedPtr TypeCValue)
- newZeroTypeCValue :: MonadIO m => m TypeCValue
- noTypeCValue :: Maybe TypeCValue
- getTypeCValueVDouble :: MonadIO m => TypeCValue -> m Double
- setTypeCValueVDouble :: MonadIO m => TypeCValue -> Double -> m ()
- getTypeCValueVInt :: MonadIO m => TypeCValue -> m Int32
- setTypeCValueVInt :: MonadIO m => TypeCValue -> Int32 -> m ()
- getTypeCValueVInt64 :: MonadIO m => TypeCValue -> m Int64
- setTypeCValueVInt64 :: MonadIO m => TypeCValue -> Int64 -> m ()
- getTypeCValueVLong :: MonadIO m => TypeCValue -> m CLong
- setTypeCValueVLong :: MonadIO m => TypeCValue -> CLong -> m ()
- clearTypeCValueVPointer :: MonadIO m => TypeCValue -> m ()
- getTypeCValueVPointer :: MonadIO m => TypeCValue -> m (Ptr ())
- setTypeCValueVPointer :: MonadIO m => TypeCValue -> Ptr () -> m ()
Exported types
newtype TypeCValue Source #
WrappedPtr TypeCValue Source # | |
(~) AttrOpTag tag AttrSet => Constructible TypeCValue tag Source # | |
newZeroTypeCValue :: MonadIO m => m TypeCValue Source #
Construct a TypeCValue
struct initialized to zero.
Properties
vDouble
getTypeCValueVDouble :: MonadIO m => TypeCValue -> m Double Source #
setTypeCValueVDouble :: MonadIO m => TypeCValue -> Double -> m () Source #
vInt
getTypeCValueVInt :: MonadIO m => TypeCValue -> m Int32 Source #
setTypeCValueVInt :: MonadIO m => TypeCValue -> Int32 -> m () Source #
vInt64
getTypeCValueVInt64 :: MonadIO m => TypeCValue -> m Int64 Source #
setTypeCValueVInt64 :: MonadIO m => TypeCValue -> Int64 -> m () Source #
vLong
getTypeCValueVLong :: MonadIO m => TypeCValue -> m CLong Source #
setTypeCValueVLong :: MonadIO m => TypeCValue -> CLong -> m () Source #
vPointer
clearTypeCValueVPointer :: MonadIO m => TypeCValue -> m () Source #
getTypeCValueVPointer :: MonadIO m => TypeCValue -> m (Ptr ()) Source #
setTypeCValueVPointer :: MonadIO m => TypeCValue -> Ptr () -> m () Source #