| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Simplex.Chat.Mobile.File
Documentation
cChatWriteFile :: StablePtr ChatController -> CString -> Ptr Word8 -> CInt -> IO CJSONString Source #
cChatReadFile :: CString -> CString -> CString -> IO (Ptr Word8) Source #
cChatEncryptFile :: StablePtr ChatController -> CString -> CString -> IO CJSONString Source #
cChatDecryptFile :: CString -> CString -> CString -> CString -> IO CString Source #
data WriteFileResult Source #
Constructors
| WFResult | |
Fields
| |
| WFError | |
Fields
| |
Instances
| ToJSON WriteFileResult Source # | |
Defined in Simplex.Chat.Mobile.File Methods toJSON :: WriteFileResult -> Value toEncoding :: WriteFileResult -> Encoding toJSONList :: [WriteFileResult] -> Value toEncodingList :: [WriteFileResult] -> Encoding omitField :: WriteFileResult -> Bool | |
data ReadFileResult Source #
Instances
| ToJSON ReadFileResult Source # | |
Defined in Simplex.Chat.Mobile.File Methods toJSON :: ReadFileResult -> Value toEncoding :: ReadFileResult -> Encoding toJSONList :: [ReadFileResult] -> Value toEncodingList :: [ReadFileResult] -> Encoding omitField :: ReadFileResult -> Bool | |
chatWriteFile :: ChatController -> FilePath -> ByteString -> IO WriteFileResult Source #
chatReadFile :: FilePath -> ByteString -> ByteString -> IO (Either String ByteString) Source #