| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Foreign.SharedPtr.C
Synopsis
- data SharedPtr a
 - type Allocator = Ptr AllocatorT
 - data AllocatorT
 - c'shared_createAllocator :: IO Allocator
 - c'shared_lookupAllocator :: CString -> IO Allocator
 - c'shared_destroyAllocator :: Allocator -> IO ()
 - c'shared_getStoreName :: Allocator -> CString
 - c'shared_ptrToShPtr :: Allocator -> Ptr a -> SharedPtr a
 - c'shared_shPtrToPtr :: Allocator -> SharedPtr a -> Ptr a
 - c'shared_malloc :: Allocator -> CSize -> IO (Ptr a)
 - c'shared_realloc :: Allocator -> Ptr a -> CSize -> IO (Ptr a)
 - c'shared_free :: Allocator -> Ptr a -> IO ()
 - p'shared_createAllocator :: FunPtr (IO Allocator)
 - p'shared_lookupAllocator :: FunPtr (CString -> IO Allocator)
 - p'shared_destroyAllocator :: FunPtr (Allocator -> IO ())
 - p'shared_getStoreName :: FunPtr (Allocator -> CString)
 - p'shared_ptrToShPtr :: FunPtr (Allocator -> Ptr a -> SharedPtr a)
 - p'shared_shPtrToPtr :: FunPtr (Allocator -> SharedPtr a -> Ptr a)
 - p'shared_malloc :: FunPtr (Allocator -> CSize -> IO (Ptr a))
 - p'shared_realloc :: FunPtr (Allocator -> Ptr a -> CSize -> IO (Ptr a))
 - p'shared_free :: FunPtr (Allocator -> Ptr a -> IO ())
 - p'vk_shared_malloc :: FunPtr (Ptr Void -> CSize -> CSize -> allocScope -> IO (Ptr Void))
 - p'vk_shared_realloc :: FunPtr (Ptr Void -> Ptr Void -> CSize -> CSize -> allocScope -> IO (Ptr Void))
 - p'vk_shared_free :: FunPtr (Ptr Void -> Ptr Void -> IO ())
 
Documentation
Special pointer format to pass between memory spaces of processes.
Instances
type Allocator = Ptr AllocatorT Source #
Opaque pointer to the allocator type defined in C code.
data AllocatorT Source #
C structure, should not be inspected from Haskell code
c'shared_destroyAllocator :: Allocator -> IO () Source #