| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
NanoVG.Internal.FFIHelpers
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 CUChars
useAsPtr :: ByteString -> (Ptr CUChar -> IO a) -> IO a Source #
Wrapper around useAsCStringLen' that discards the length