Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
withCString :: Text -> (CString -> IO b) -> IO b Source #
Marshal a Haskell string into a NUL terminated C string using temporary storage.
useAsCStringLen' :: ByteString -> ((Ptr CUChar, CInt) -> IO a) -> IO a Source #
Wrapper around useAsCStringLen
that uses CUChar
s
useAsPtr :: ByteString -> (Ptr CUChar -> IO a) -> IO a Source #
Wrapper around useAsCStringLen'
that discards the length