Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data CStdString
- stdStringCtx :: Context
- moveToByteString :: Ptr CStdString -> IO ByteString
- withString :: ByteString -> (Ptr CStdString -> IO a) -> IO a
- new :: ByteString -> IO (Ptr CStdString)
- delete :: Delete a => Ptr a -> IO ()
- copyToByteString :: StdString -> IO ByteString
Context
data CStdString Source #
Instances
Delete CStdString Source # | |
Defined in Hercules.CNix.Std.String | |
Finalizer CStdString Source # | |
Defined in Hercules.CNix.Std.String |
Functions
moveToByteString :: Ptr CStdString -> IO ByteString Source #
withString :: ByteString -> (Ptr CStdString -> IO a) -> IO a Source #
Low level functions
new :: ByteString -> IO (Ptr CStdString) Source #
Wrapper-based functions
copyToByteString :: StdString -> IO ByteString Source #