Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
config.h File Reference
#include <stddef.h>
#include <zstd.h>
#include "data.h"

Go to the source code of this file.

Data Structures

struct  param_value_t
 
struct  param_values_t
 
struct  config_t
 

Macros

#define ZSTD_STATIC_LINKING_ONLY
 
#define CONFIG_NO_LEVEL   (-ZSTD_TARGETLENGTH_MAX - 1)
 

Functions

int config_skip_data (config_t const *config, data_t const *data)
 
int config_get_level (config_t const *config)
 
ZSTD_parameters config_get_zstd_params (config_t const *config, uint64_t srcSize, size_t dictSize)
 

Variables

config_t const *constconfigs
 

Macro Definition Documentation

◆ CONFIG_NO_LEVEL

#define CONFIG_NO_LEVEL   (-ZSTD_TARGETLENGTH_MAX - 1)

◆ ZSTD_STATIC_LINKING_ONLY

#define ZSTD_STATIC_LINKING_ONLY

Function Documentation

◆ config_get_level()

int config_get_level ( config_t const * config)

Returns the compression level specified by the config, or CONFIG_NO_LEVEL if no level is specified. Note that 0 is a valid compression level, meaning default.

◆ config_get_zstd_params()

ZSTD_parameters config_get_zstd_params ( config_t const * config,
uint64_t srcSize,
size_t dictSize )

Returns the compression parameters specified by the config.

◆ config_skip_data()

int config_skip_data ( config_t const * config,
data_t const * data )

Returns true if the config should skip this data. For instance, if the config requires a dictionary but the data doesn't have one.

Variable Documentation

◆ configs

config_t const* const* configs
extern

The NULL-terminated list of configs.