ZipArchive

Overview

ZipArchive 是 C++ 的 FOSS 中的 Aspose.Cells 类.

本类提供了5种方法,用于在C++程序中与ZipArchive对象工作. 有的方法包括: AddEntry, FromZipBytes, GetEntry, GetEntryCount, ToZipBytes. 在安装了Aspose.Cells FOSS for C++ 包后,所有公众成员都可以访问任何C ++应用程序.

Methods

SignatureDescription
FromZipBytes(zipData: std::vector<uint8_t>)ZipArchive解析原始字节中的ZIP档案. 在不正确或腐败的数据上抛出std::runtime_error.
ToZipBytes()std::vector<uint8_t>使用STORED (没有压缩) 将该档案串行到ZIP字节.
GetEntry(uri: std::string_view)ZipArchiveEntry获取一个按 URI 的输入. Uri 是正常化的 (先进的 ‘/’ 被剥去,反框被替换). 如果没有找到的话返回 null ZipArchiveEntry .
AddEntry(uri: std::string_view, data: std::vector<uint8_t>)添加或替换一个条目.
GetEntryCount()size_t得到了输入数.

See Also

 中文