Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data StdString
- newStdString :: ByteString -> IO (Ptr StdString)
- maybeNewStdString :: Maybe ByteString -> IO (Ptr StdString)
- hs_new_std_string :: Ptr Word8 -> Int -> IO (Ptr StdString)
- hs_new_std_string_def :: IO (Ptr StdString)
- hs_std_string_size :: Ptr StdString -> IO Int
- hs_std_string_cstr :: Ptr StdString -> IO (Ptr Word8)
- hs_delete_std_string :: Ptr StdString -> IO ()
- unsafePeekStdString :: Ptr StdString -> IO ByteString
- data StdVector a
StdString
newStdString :: ByteString -> IO (Ptr StdString) Source #
New a c++ std::string from proviced bytestring.
The memory should be deallocated using delete when no longer required.
maybeNewStdString :: Maybe ByteString -> IO (Ptr StdString) Source #