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

Resource and stream-validation policy for decompression operations. More...

#include <compression.hpp>

Public Attributes

std::size_t maximum_output_size = 1024U * 1024U * 1024U
 Maximum total number of bytes the operation may emit.
 
bool allow_concatenated_streams = false
 Whether to decode adjacent members for formats that define concatenation.
 

Detailed Description

Resource and stream-validation policy for decompression operations.

Definition at line 69 of file compression.hpp.

Member Data Documentation

◆ allow_concatenated_streams

bool rpnx::compression::decompression_options::allow_concatenated_streams = false

Whether to decode adjacent members for formats that define concatenation.

When false, bytes following the first complete stream are rejected. When true, the decoder treats adjacent input as additional members of the selected format.

Definition at line 86 of file compression.hpp.

Referenced by rpnx::compression::bzip2_codec::decompress(), rpnx::compression::deflate_codec::decompress(), rpnx::compression::lz4_codec::decompress(), rpnx::compression::xz_codec::decompress(), and rpnx::compression::zstandard_codec::decompress().

◆ maximum_output_size

std::size_t rpnx::compression::decompression_options::maximum_output_size = 1024U * 1024U * 1024U

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