ZipArchive
Overview
ZipArchive is a class in Aspose.Cells FOSS for C++.
Methods
| Signature | Description |
|---|---|
FromZipBytes(zipData: std::vector<uint8_t>) → ZipArchive | Parses a ZIP archive from raw bytes. Throws std::runtime_error on invalid or corrupt data. |
ToZipBytes() → std::vector<uint8_t> | Serializes this archive to ZIP bytes using STORED (no compression). |
GetEntry(uri: std::string_view) → ZipArchiveEntry | Gets an entry by URI. The URI is normalized (leading ‘/’ stripped, backslashes replaced). Returns a null ZipArchiveEntry if not found. |
AddEntry(uri: std::string_view, data: std::vector<uint8_t>) | Adds or replaces an entry. |
GetEntryCount() → size_t | Gets the number of entries. |