Copyright | (c) 2019 Edward Kmett |
---|---|
License | BSD-2-Clause OR Apache-2.0 |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
Synopsis
- data ConstPtr a
- constPtr :: APtr p => p a -> ConstPtr a
- type APtr = Constable ConstPtr
- peekAt :: forall p a. (Storable a, APtr p) => p a -> IO a
- peekAtElemOff :: forall p a. (Storable a, APtr p) => p a -> Int -> IO a
- peekAtByteOff :: forall p a b. (Storable a, APtr p) => p b -> Int -> IO a
- minusAPtr :: forall p q a b. (APtr p, APtr q) => p a -> q b -> Int
- castAPtr :: forall p a b. APtr p => p a -> p b
- plusAPtr :: forall p a b. APtr p => p a -> Int -> p b
- alignAPtr :: forall p a. APtr p => p a -> Int -> p a
- nullConstPtr :: ConstPtr a
- castConstPtr :: forall p a b. APtr p => p a -> ConstPtr b
- plusConstPtr :: forall p a b. APtr p => p a -> Int -> ConstPtr b
- alignConstPtr :: forall p a. APtr p => p a -> Int -> ConstPtr a
Documentation
Instances
DiffTorsor ConstPtr Source # | |
Eq (ConstPtr a) Source # | |
Data a => Data (ConstPtr a) Source # | |
Defined in Data.Const.Unsafe gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ConstPtr a -> c (ConstPtr a) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (ConstPtr a) # toConstr :: ConstPtr a -> Constr # dataTypeOf :: ConstPtr a -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (ConstPtr a)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (ConstPtr a)) # gmapT :: (forall b. Data b => b -> b) -> ConstPtr a -> ConstPtr a # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ConstPtr a -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ConstPtr a -> r # gmapQ :: (forall d. Data d => d -> u) -> ConstPtr a -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> ConstPtr a -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ConstPtr a -> m (ConstPtr a) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ConstPtr a -> m (ConstPtr a) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ConstPtr a -> m (ConstPtr a) # | |
Ord (ConstPtr a) Source # | |
Show (ConstPtr a) Source # | |
Storable (ConstPtr a) Source # | |
Defined in Data.Const.Unsafe | |
Constable ConstPtr Ptr Source # | |
Defined in Data.Const.Unsafe | |
Constable ConstPtr ConstPtr Source # | |
Defined in Data.Const.Unsafe |
const-agnostic operations
const preserving operations
operations returning const pointers
nullConstPtr :: ConstPtr a Source #
castConstPtr :: forall p a b. APtr p => p a -> ConstPtr b Source #