Disk ARchive
2.3.11
|
compression class for gzip and bzip2 algorithms More...
#include <compressor.hpp>
Inherits libdar::generic_file.
Public Member Functions | |
compressor (user_interaction &dialog, compression algo, generic_file &compressed_side, U_I compression_level=9) | |
compressor (user_interaction &dialog, compression algo, generic_file *compressed_side, U_I compression_level=9) | |
void | flush_write () |
void | flush_read () |
void | clean_read () |
void | clean_write () |
compression | get_algo () const |
void | change_algo (compression new_algo, U_I new_compression_level) |
changes compression algorithm used by the compressor | |
void | change_algo (compression new_algo) |
changes the compression algorithm keeping the same compression level | |
bool | skip (const infinint &position) |
skip at the absolute position | |
bool | skip_to_eof () |
skip to the end of file | |
bool | skip_relative (S_I x) |
skip relatively to the current position | |
infinint | get_position () |
get the current read/write position | |
Protected Member Functions | |
S_I | inherited_read (char *a, size_t size) |
S_I | inherited_write (const char *a, size_t size) |
compression class for gzip and bzip2 algorithms
Definition at line 57 of file compressor.hpp.
void libdar::compressor::change_algo | ( | compression | new_algo, |
U_I | new_compression_level | ||
) |
changes compression algorithm used by the compressor
[in] | new_algo | defines the new algorithm to use |
[in] | new_compression_level | defines the new compression level to use. |
Referenced by change_algo().