64 explicit operator bool()
const;
66 [[nodiscard]]
bool isValid()
const;
72 [[nodiscard]]
bool isOpen()
const;
78 void open(std::string_view fileName);
89 void save(std::string_view path =
"");
96 void addEntry(std::string_view name, std::string data);
104 void addEntryAllocated(std::string_view name,
void* data,
size_t size);
111 void addEntryFromFile(std::string_view name, std::string_view filePath);
117 void deleteEntry(std::string_view entryName);
124 [[nodiscard]] std::string getEntry(std::string_view name)
const;
131 void* openEntryStream(std::string_view name)
const;
140 int64_t readEntryStream(
void* stream,
char* buffer, uint64_t size)
const;
146 void closeEntryStream(
void* stream)
const;
153 [[nodiscard]]
bool hasEntry(std::string_view entryName)
const;
159 [[nodiscard]] std::vector<std::string> entryNames()
const;
165 void setCompressionLevel(
int level);
170 int compressionLevel()
const;
174 std::shared_ptr<LibZipApp> m_archive;
175 int m_compressionLevel{1};