Disk ARchive  2.7.15
Full featured and portable backup and archiving tool
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
libdar::elastic Class Reference

the elastic buffer class More...

#include <elastic.hpp>

+ Collaboration diagram for libdar::elastic:

Public Member Functions

 elastic (U_32 size)
 
 elastic (const unsigned char *buffer, U_32 size, elastic_direction dir, const archive_version &reading_ver)
 
 elastic (generic_file &f, elastic_direction dir, const archive_version &reading_ver)
 
 elastic (const elastic &ref)=default
 
 elastic (elastic &&ref) noexcept=default
 
elasticoperator= (const elastic &ref)=default
 
elasticoperator= (elastic &&ref) noexcept=default
 
U_32 dump (unsigned char *buffer, U_32 size) const
 
U_32 get_size () const
 

Static Public Member Functions

static U_I max_length ()
 

Private Member Functions

void randomize (unsigned char *a) const
 
U_I base_from_version (const archive_version &reading_ver) const
 
unsigned char get_low_mark (const archive_version &reading_ver) const
 
unsigned char get_high_mark (const archive_version &reading_ver) const
 
unsigned char get_low_mark () const
 
unsigned char get_high_mark () const
 

Private Attributes

U_32 taille
 

Detailed Description

the elastic buffer class

the elastic class makes possible to insert arbritrary bytes beside information bytes, and to retreive later without any other knowledge which bytes are information and which byte are from the elastic buffer. The main purpose is for strong encryption

Definition at line 51 of file elastic.hpp.


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