ZipArchive

Overview

ZipArchive is a class in Aspose.Cells FOSS for C++.

Methods

SignatureDescription
FromZipBytes(zipData: std::vector<uint8_t>)ZipArchiveParses 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)ZipArchiveEntryGets 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_tGets the number of entries.

See Also