ZipArchive
ZipArchive
개요
ZipArchive은(는) Aspose.Cells FOSS for C++의 클래스입니다.
이 클래스는 C++ 프로그램에서 ZipArchive 객체를 다루기 위한 5개의 메서드를 제공합니다. 사용 가능한 메서드에는 AddEntry, FromZipBytes, GetEntry, GetEntryCount, ToZipBytes가 포함됩니다. Aspose.Cells FOSS for C++ 패키지를 설치한 후에는 모든 공개 멤버에 C++ 애플리케이션 어디서든 접근할 수 있습니다.
메서드
| 시그니처 | 설명 |
|---|---|
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 | 엔트리 수를 가져옵니다. |