| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
HsBindgen.Runtime.BitfieldPtr
Description
Pointers to bitfields
This module is intended to be imported qualified.
import HsBindgen.Runtime.Prelude import HsBindgen.Runtime.BitfieldPtr qualified as BitfieldPtr
Synopsis
- data BitfieldPtr a where
- pattern BitfieldPtr :: Ptr a -> Int -> Int -> BitfieldPtr a
- peek :: Bitfield a => BitfieldPtr a -> IO a
- poke :: Bitfield a => BitfieldPtr a -> a -> IO ()
Documentation
data BitfieldPtr a where Source #
A pointer to a bit-field of a C object
Bundled Patterns
| pattern BitfieldPtr :: Ptr a -> Int -> Int -> BitfieldPtr a |
peek :: Bitfield a => BitfieldPtr a -> IO a Source #
Read from a bit-field using a pointer
poke :: Bitfield a => BitfieldPtr a -> a -> IO () Source #
Write to a bit-field using a pointer