![]() |
Disk ARchive 2.7.18
Full featured and portable backup and archiving tool
|
defines how to calculate delta signature block size based of file size to delta sign More...
#include <delta_sig_block_size.hpp>
Public Types | |
| enum | fs_function_t { fixed , linear , log2 , square2 , square3 } |
| defines the function to use to derivate block size from file size More... | |
Public Member Functions | |
| delta_sig_block_size (const delta_sig_block_size &ref)=default | |
| set the structure to defaults value | |
| delta_sig_block_size (delta_sig_block_size &&ref) noexcept=default | |
| delta_sig_block_size & | operator= (const delta_sig_block_size &ref)=default |
| delta_sig_block_size & | operator= (delta_sig_block_size &&ref) noexcept=default |
| bool | operator== (const delta_sig_block_size &ref) const |
| void | reset () |
| reset to default value | |
| bool | equals_default () |
| whether structure has default values | |
| void | check () const |
| check the sanity of the provided values | |
| U_I | calculate (const infinint &filesize) const |
| calculate the value of the block size given the file size | |
Public Attributes | |
| fs_function_t | fs_function |
| infinint | multiplier |
| function dependently used multiplier | |
| infinint | divisor |
| function dependently used divisor | |
| U_I | min_block_len |
| calculated block len will never be lower than that | |
| U_I | max_block_len |
| calculated block len will never be higer than that except if this field is set to zero (disabling this ceiling check) | |
defines how to calculate delta signature block size based of file size to delta sign
Definition at line 46 of file delta_sig_block_size.hpp.
defines the function to use to derivate block size from file size
| Enumerator | |
|---|---|
| fixed | block size is independant from file size |
| linear | block size if proportionnal to file size |
| log2 | block size is proportional to log2(file size) |
| square2 | block size is proportional to filesize^2 |
| square3 | block size if proportional to filesize^3 |
Definition at line 49 of file delta_sig_block_size.hpp.
|
inline |
Definition at line 66 of file delta_sig_block_size.hpp.
| U_I libdar::delta_sig_block_size::calculate | ( | const infinint & | filesize | ) | const |
calculate the value of the block size given the file size
| [in] | filesize | is the size of the file which delta signature to be calculated |
|
inline |
whether structure has default values
Definition at line 79 of file delta_sig_block_size.hpp.
| infinint libdar::delta_sig_block_size::divisor |
function dependently used divisor
Definition at line 60 of file delta_sig_block_size.hpp.
| fs_function_t libdar::delta_sig_block_size::fs_function |
Definition at line 58 of file delta_sig_block_size.hpp.
| U_I libdar::delta_sig_block_size::max_block_len |
calculated block len will never be higer than that except if this field is set to zero (disabling this ceiling check)
Definition at line 62 of file delta_sig_block_size.hpp.
| U_I libdar::delta_sig_block_size::min_block_len |
calculated block len will never be lower than that
Definition at line 61 of file delta_sig_block_size.hpp.
| infinint libdar::delta_sig_block_size::multiplier |
function dependently used multiplier
Definition at line 59 of file delta_sig_block_size.hpp.