29 #include "../my_config.h"
53 ~
scrambler() {
if(buffer !=
nullptr)
delete [] buffer; };
56 virtual bool skippable(skippability direction,
const infinint & amount)
override {
if(ref ==
nullptr)
throw SRC_BUG;
return ref->
skippable(direction, amount); };
57 virtual bool skip(
const infinint & pos)
override {
if(ref ==
nullptr)
throw SRC_BUG;
return ref->
skip(pos); };
76 unsigned char *buffer;
this is the interface class from which all other data transfer classes inherit
virtual void truncate(const infinint &pos)
truncate file at the given offset
void read_ahead(const infinint &amount)
the arbitrary large positive integer class
scrambler is a very weak encryption scheme
virtual void inherited_write(const char *a, U_I size) override
implementation of the write() operation
virtual bool skippable(skippability direction, const infinint &amount) override
whether the implementation is able to skip
virtual infinint get_position() const override
get the current read/write position
virtual bool skip_to_eof() override
skip to the end of file
virtual void inherited_read_ahead(const infinint &amount) override
tells the object that several calls to read() will follow to probably obtain at least the given amoun...
virtual void inherited_terminate() override
destructor-like call, except that it is allowed to throw exceptions
virtual void inherited_sync_write() override
write down any pending data
virtual void inherited_flush_read() override
reset internal engine, flush caches in order to read the data at current position
virtual bool truncatable(const infinint &pos) const override
whether the implementation is able to truncate to the given position
virtual bool skip(const infinint &pos) override
skip at the absolute position
virtual bool skip_relative(S_I x) override
skip relatively to the current position
virtual void inherited_truncate(const infinint &pos) override
truncate file at the give offset
virtual U_I inherited_read(char *a, U_I size) override
implementation of read() operation
contains all the excetion class thrown by libdar
class generic_file is defined here as well as class fichier
switch module to limitint (32 ou 64 bits integers) or infinint
libdar namespace encapsulate all libdar symbols
this file contains the definition of secu_string class, a std::string like class but allocated in sec...