Sink wrapper that creates ZIP archives, CRC sum and compression of entries is NOT supported.
More...
Public Member Functions |
| | zip_sink (Sink &&sink) |
| | Constructor.
|
| | ~zip_sink () STATICLIB_NOEXCEPT |
| | Destructor, will call finalize() if it have not been called yet.
|
| | zip_sink (const zip_sink &) |
| | Deleted copy constructor.
|
| zip_sink & | operator= (const zip_sink &) |
| | Deleted copy assignment operator.
|
| | zip_sink (zip_sink &&other) |
| | Move constructor.
|
| zip_sink & | operator= (zip_sink &&other) |
| | Move assignment operator.
|
| std::streamsize | write (sl::io::span< const char > span) |
| | Write implementation.
|
| std::streamsize | flush () |
| | Calls flush on dest stream.
|
| void | add_entry (const std::string &filename) |
| | Add ZIP entry with the specified name to archive.
|
| void | finalize () |
| | Finalizes ZIP archive writing Central Directory, may be safely called multiple times, will be called from destructor if not called explicitely.
|
template<typename Sink>
class staticlib::compress::zip_sink< Sink >
Sink wrapper that creates ZIP archives, CRC sum and compression of entries is NOT supported.