| ||||||||
| ||||||||
Description | ||||||||
Utilities for primitive marshaling | ||||||||
type CString = Ptr CChar | ||||||||
type CStringLen = (CString, Int) | ||||||||
peekCString :: CString -> IO String | ||||||||
peekCStringLen :: CStringLen -> IO String | ||||||||
newCString :: String -> IO CString | ||||||||
newCStringLen :: String -> IO CStringLen | ||||||||
withCString :: String -> (CString -> IO a) -> IO a | ||||||||
withCStringLen :: String -> (CStringLen -> IO a) -> IO a | ||||||||
castCharToCChar :: Char -> CChar | ||||||||
castCCharToChar :: CChar -> Char | ||||||||
Produced by Haddock version 0.4 |