Foreign.C.ConstPtr
| Copyright | (c) GHC Developers |
|---|---|
| License | BSD-style (see the file libraries/base/LICENSE) |
| Maintainer | ffi@haskell.org |
| Stability | provisional |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Описание
Этот модуль предоставляет типизированные const указатели на внешние данные. Он является частью интерфейса внешних функций (FFI).
Указатель с квалификатором C const. Например, аргумент типа ConstPtr CInt будет маршалироваться как const int*.
В то время как const-ность обычно не имеет значения для ccall импорта (поскольку const и не-const указатели обычно имеют эквивалентные соглашения о вызовах), это имеет значение для capi импорта. См. GHC #22043.
Since: base-4.18.0.0
Конструкторы
| ConstPtr | |
Поля
| |
Экземпляры
| Data a => Data (ConstPtr a) Source | Since: base-4.18.0.0 |
Определено в GHC.Internal.Data.Data Методыgfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ConstPtr a -> c (ConstPtr a) Source gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (ConstPtr a) Source toConstr :: ConstPtr a -> Constr Source dataTypeOf :: ConstPtr a -> DataType Source dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (ConstPtr a)) Source dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (ConstPtr a)) Source gmapT :: (forall b. Data b => b -> b) -> ConstPtr a -> ConstPtr a Source gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ConstPtr a -> r Source gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ConstPtr a -> r Source gmapQ :: (forall d. Data d => d -> u) -> ConstPtr a -> [u] Source gmapQi :: Int -> (forall d. Data d => d -> u) -> ConstPtr a -> u Source gmapM :: Monad m => (forall d. Data d => d -> m d) -> ConstPtr a -> m (ConstPtr a) Source gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ConstPtr a -> m (ConstPtr a) Source gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ConstPtr a -> m (ConstPtr a) Source | |
| Storable (ConstPtr a) Source | |
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/9.12.1/docs/libraries/base-4.21.0.0-8e62/Foreign-C-ConstPtr.html