| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
SDL3.Sys.Bindgen.Runtime.HasCBitfield
Description
Facade over HsBindgen.Runtime.HasCBitfield from the vendored hs-bindgen runtime.
Intended for qualified import:
import qualified SDL3.Sys.Bindgen.Runtime.HasCBitfield as HasCBitfield
For licensing information, see LICENSE_hs-bindgen-runtime in this package's root.
Documentation
peek :: forall a (field :: Symbol). (StaticSize a, HasCBitfield a field, Bitfield (CBitfieldType a field)) => Proxy field -> Ptr a -> IO (CBitfieldType a field) #
poke :: forall a (field :: Symbol). (StaticSize a, HasCBitfield a field, Bitfield (CBitfieldType a field)) => Proxy field -> Ptr a -> CBitfieldType a field -> IO () #
toPtr :: forall a (field :: Symbol). (StaticSize a, HasCBitfield a field) => Proxy field -> Ptr a -> BitfieldPtr (CBitfieldType a field) #
type family CBitfieldType a (field :: Symbol) #
class HasCBitfield a (field :: Symbol) where #
Associated Types
type CBitfieldType a (field :: Symbol) #
Methods
bitfieldOffset# :: Proxy# a -> Proxy# field -> Int #
bitfieldWidth# :: Proxy# a -> Proxy# field -> Int #