Safe Haskell | None |
---|---|
Language | Haskell2010 |
Exposed internals of SharedObjectName
.
Synopsis
- newtype SOName a = SOName (ForeignPtr CChar)
- hPutSOName :: Handle -> SOName a -> IO ()
- hGetSOName :: Handle -> IO (Maybe (SOName a))
- unsafeWithSOName :: SOName a -> (CString -> IO b) -> IO b
- genSOName :: IO (SOName a)
- newEmptySOName :: IO (SOName a)
Documentation
Reference to a shared object; can be sent to other processes.
Instances
Eq (SOName a) Source # | |
Ord (SOName a) Source # | |
Defined in Foreign.SharedObjectName.Internal | |
Read (SOName a) Source # | |
Show (SOName a) Source # | |
Storable (SOName a) Source # | |
Defined in Foreign.SharedObjectName.Internal |
hPutSOName :: Handle -> SOName a -> IO () Source #
Write a shared object name into somwhere referenced by a handle. Useful for sending references to other processes via pipes.
hGetSOName :: Handle -> IO (Maybe (SOName a)) Source #
Read a shared object name from somwhere referenced by a handle.
Returns Nothing
if hGetBuf
gets less than 32
bytes.
Useful for sending references to other processes via pipes.
unsafeWithSOName :: SOName a -> (CString -> IO b) -> IO b Source #
Use a pointer to a C string to pass to some low-level (e.g. foreign) functions.
SOName
is asserted immutable, so do not modify it!
newEmptySOName :: IO (SOName a) Source #
Allocate a new shared object name.