| Copyright | (C) 2018 Johann Lee <me@qinka.pro> |
|---|---|
| License | LGPL3 |
| Maintainer | me@qinka.pro |
| Stability | experimental |
| Portability | unknown |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Foreign.FAI.Internal
Description
The internal functions.
Synopsis
- autoNewForeignPtr :: FinalizerContextPtr p (Pf p a) -> Context p -> Ptr (Pf p a) -> Int -> IO (Buffer p a)
- dup :: (FAICopy p1 p2, FAI p1, FAI p2, Storable b, Pf p2 a ~ b, Pf p1 a ~ b) => Context p2 -> Bool -> Buffer p1 a -> IO (Buffer p2 a, Context p2)
- replaceContext :: Context p2 -> (a, Context p1) -> (a, Context p2)
Documentation
Arguments
| :: FinalizerContextPtr p (Pf p a) | Context p concerned finalizer |
| -> Context p | Context |
| -> Ptr (Pf p a) | pointer |
| -> Int | Size |
| -> IO (Buffer p a) | buffer |
allocate new foreign pointer