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. | |
Resource and stream-validation policy for decompression operations.
Definition at line 69 of file compression.hpp.
| 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().
| std::size_t rpnx::compression::decompression_options::maximum_output_size = 1024U * 1024U * 1024U |
Maximum total number of bytes the operation may emit.
Decoding stops with error_code::output_limit_exceeded before the returned output grows beyond this value. The default is one GiB.
Definition at line 77 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(), rpnx::compression::zstandard_codec::decompress(), and rpnx::compression::zip_detail::extract_archive().