streamly-archive-0.1.0: Stream data from archives using the streamly library.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Streamly.External.Archive.Internal.Foreign

Synopsis

Documentation

blockSize :: Num a => a Source #

archive_read_next_header :: Archive -> IO (Maybe Entry) Source #

Returns Nothing if we have reached the end of the archive.

alloc_archive_read_data_buffer :: IO (Ptr CChar) Source #

Please free after use.

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.