26 #ifndef PROTO_COMPRESSOR_HPP
27 #define PROTO_COMPRESSOR_HPP
29 #include "../my_config.h"
42 class proto_compressor :
public generic_file
47 proto_compressor(
const proto_compressor & ref) =
default;
48 proto_compressor(proto_compressor && ref) noexcept =
default;
49 proto_compressor & operator = (
const proto_compressor & ref) =
default;
50 proto_compressor & operator = (proto_compressor && ref) noexcept =
default;
51 virtual ~proto_compressor() =
default;
57 virtual void suspend_compression() = 0;
60 virtual void resume_compression() = 0;
63 virtual bool is_compression_suspended()
const = 0;
69 constexpr
const U_I default_uncompressed_block_size = 102400;
70 constexpr
const U_I min_uncompressed_block_size = 100;
generic_file(gf_mode m)
main constructor
compression parameters for API
class generic_file is defined here as well as class fichier
compression
the different compression algorithm available
switch module to limitint (32 ou 64 bits integers) or infinint
libdar namespace encapsulate all libdar symbols