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

Resource limits applied while parsing a ZIP archive. More...

#include <zip.hpp>

Public Attributes

std::size_t maximum_entry_count = 100000U
 Maximum number of members accepted from one archive.
 
std::size_t maximum_entry_size = 1024U * 1024U * 1024U
 Maximum uncompressed size accepted for any one member.
 
std::size_t maximum_total_size = std::size_t{4U} * 1024U * 1024U * 1024U
 Maximum combined uncompressed size accepted for all members.
 

Detailed Description

Resource limits applied while parsing a ZIP archive.

Definition at line 56 of file zip.hpp.

Member Data Documentation

◆ maximum_entry_count

std::size_t rpnx::compression::zip_extraction_options::maximum_entry_count = 100000U

Maximum number of members accepted from one archive.

Definition at line 59 of file zip.hpp.

Referenced by rpnx::compression::zip_detail::extract_archive().

◆ maximum_entry_size

std::size_t rpnx::compression::zip_extraction_options::maximum_entry_size = 1024U * 1024U * 1024U

Maximum uncompressed size accepted for any one member.

Definition at line 62 of file zip.hpp.

Referenced by rpnx::compression::zip_detail::extract_archive().

◆ maximum_total_size

std::size_t rpnx::compression::zip_extraction_options::maximum_total_size = std::size_t{4U} * 1024U * 1024U * 1024U

Maximum combined uncompressed size accepted for all members.

Definition at line 65 of file zip.hpp.

Referenced by rpnx::compression::zip_detail::extract_archive().


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