Zip file writer.
More...
#include <zipwriter.h>
Zip file writer.
- Note
- This is just a wrapper around its Rust implementation.
◆ ZipWriter() [1/3]
◆ ZipWriter() [2/3]
Create in-memory writer.
- Exceptions
-
◆ ZipWriter() [3/3]
Create file writer.
- Parameters
-
- Exceptions
-
◆ ~ZipWriter()
◆ operator=()
◆ writeFile()
void writeFile |
( |
const QString & |
path, |
|
|
const QByteArray & |
data, |
|
|
uint32_t |
mode |
|
) |
| |
Write a file.
- Parameters
-
path | Path within archive |
data | File content |
mode | Unix permissions (e.g. 0644). |
◆ finish()
Finish writing the file.
This must always be called after all files have been written.
- Exceptions
-
◆ getData()
const QByteArray & getData |
( |
| ) |
const |
Get the in-memory ZIP data.
- Note
- finish() must have been called first.
- Returns
- The ZIP content
- Exceptions
-
If | the written data is empty or incomplete, or this is not an in-memory writer. |
◆ mBuffer
◆ mHandle
◆ mFinished
The documentation for this class was generated from the following files: