RPNX::Compress
Self-contained C++20 compression and ZIP library
 
Loading...
Searching...
No Matches
rpnx::compression::zip_entry Struct Reference

An owning ZIP archive member. More...

#include <zip.hpp>

Public Attributes

std::string path
 Relative, forward-slash-separated archive path.
 
std::vector< std::byte > data
 Uncompressed member contents.
 
zip_compression compression = zip_compression::deflate
 Method used when the entry is written to an archive.
 

Detailed Description

An owning ZIP archive member.

Paths use forward slashes and must be relative. Archive creation and extraction reject empty paths, absolute paths, drive-qualified paths, backslashes, embedded nulls, and parent-directory components.

Definition at line 43 of file zip.hpp.

Member Data Documentation

◆ compression

zip_compression rpnx::compression::zip_entry::compression = zip_compression::deflate

Method used when the entry is written to an archive.

Definition at line 52 of file zip.hpp.

Referenced by rpnx::compression::create_zip().

◆ data

std::vector< std::byte > rpnx::compression::zip_entry::data

Uncompressed member contents.

Definition at line 49 of file zip.hpp.

Referenced by rpnx::compression::create_zip().

◆ path

std::string rpnx::compression::zip_entry::path

Relative, forward-slash-separated archive path.

Definition at line 46 of file zip.hpp.

Referenced by rpnx::compression::create_zip().


The documentation for this struct was generated from the following file: