| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Botan.Bindings.ConstPtr
Synopsis
- newtype ConstPtr a = ConstPtr {
- unConstPtr :: Ptr a
Documentation
A pointer with the C const qualifier. For instance, an argument of type
ConstPtr CInt would be marshalled as const int*.
While const-ness generally does not matter for ccall imports (since
const and non-const pointers typically have equivalent calling
conventions), it does matter for capi imports. See GHC #22043.
Since: base-4.18.0.0
Constructors
| ConstPtr | |
Fields
| |
Instances
| Storable (ConstPtr a) | |
Defined in Foreign.Storable Methods alignment :: ConstPtr a -> Int # peekElemOff :: Ptr (ConstPtr a) -> Int -> IO (ConstPtr a) # pokeElemOff :: Ptr (ConstPtr a) -> Int -> ConstPtr a -> IO () # peekByteOff :: Ptr b -> Int -> IO (ConstPtr a) # pokeByteOff :: Ptr b -> Int -> ConstPtr a -> IO () # | |
| Show (ConstPtr a) | |
| Eq (ConstPtr a) | |
| Ord (ConstPtr a) | |