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

Options shared by compression operations. More...

#include <compression.hpp>

Public Attributes

std::optional< std::int32_t > level
 Optional format-specific compression level.
 

Detailed Description

Options shared by compression operations.

Definition at line 56 of file compression.hpp.

Member Data Documentation

◆ level

std::optional< std::int32_t > rpnx::compression::compression_options::level

Optional format-specific compression level.

The accepted ranges are 0–9 for DEFLATE, zlib, and gzip; 1–9 for bzip2; 0–9 for xz; 0–22 for Zstandard; and 0–12 for LZ4. An empty value selects the codec's default level.

Definition at line 65 of file compression.hpp.

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


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