Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Archive
- data Entry
- data FileType
- archive_read_new :: IO Archive
- archive_read_support_filter_all :: Archive -> IO ()
- archive_read_support_format_all :: Archive -> IO ()
- archive_read_support_format_gnutar :: Archive -> IO ()
- blockSize :: Num a => a
- archive_read_open_filename :: Archive -> FilePath -> IO ()
- archive_read_next_header :: Archive -> IO (Maybe Entry)
- archive_entry_filetype :: Entry -> IO (Maybe FileType)
- archive_entry_pathname :: Entry -> IO (Maybe ByteString)
- archive_entry_pathname_utf8 :: Entry -> IO (Maybe ByteString)
- archive_entry_size :: Entry -> IO (Maybe Int)
- alloc_archive_read_data_buffer :: IO (Ptr CChar)
- archive_read_data :: Archive -> Ptr CChar -> IO (Maybe ByteString)
- archive_read_data_block :: Archive -> Ptr (Ptr CChar) -> Ptr CSize -> Ptr Int64 -> Int64 -> IO (ByteString, Bool)
- archive_read_free :: Archive -> IO ()
Documentation
FileTypeRegular | |
FileTypeSymlink | |
FileTypeSocket | |
FileTypeCharDevice | |
FileTypeBlockDevice | |
FileTypeDirectory | |
FileTypeNamedPipe |
archive_read_support_filter_all :: Archive -> IO () Source #
archive_read_support_format_all :: Archive -> IO () Source #
archive_read_support_format_gnutar :: Archive -> IO () Source #
archive_read_next_header :: Archive -> IO (Maybe Entry) Source #
Returns Nothing
if we have reached the end of the archive.
archive_entry_pathname :: Entry -> IO (Maybe ByteString) Source #
archive_entry_pathname_utf8 :: Entry -> IO (Maybe ByteString) Source #
archive_read_data :: Archive -> Ptr CChar -> IO (Maybe ByteString) Source #
Returns Nothing
if there is no more data for the current entry.
Pass in a buffer allocated with alloc_archive_read_data_buffer
.
archive_read_data_block :: Archive -> Ptr (Ptr CChar) -> Ptr CSize -> Ptr Int64 -> Int64 -> IO (ByteString, Bool) Source #
archive_read_free :: Archive -> IO () Source #