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_view data);
103 void addEntryFromFile(std::string_view name, std::string_view filePath);
109 void deleteEntry(std::string_view entryName);
116 [[nodiscard]] std::string getEntry(std::string_view name)
const;
123 void* openEntryStream(std::string_view name)
const;
132 int64_t readEntryStream(
void* stream,
char* buffer, uint64_t size)
const;
138 void closeEntryStream(
void* stream)
const;
145 [[nodiscard]]
bool hasEntry(std::string_view entryName)
const;
151 [[nodiscard]] std::vector<std::string> entryNames()
const;
157 void setCompressionLevel(
int level);
162 int compressionLevel()
const;
166 std::shared_ptr<LibZipApp> m_archive;
167 int m_compressionLevel{1};