59 virtual bool skippable(skippability direction,
const infinint & amount)
override {
return true; };
60 virtual bool skip(
const infinint &pos)
override { set_offset(pos);
return true; };
61 virtual bool skip_to_eof()
override { offset = max_offset;
return true; };
62 virtual bool skip_relative(
signed int x)
override {
return set_rel_offset(x); };
82 set_offset(offset + siz);
101 bool set_rel_offset(
signed int x)
105 set_offset(offset + x);
this is the interface class from which all other data transfer classes inherit
generic_file(gf_mode m)
main constructor
the arbitrary large positive integer class
the null_file class implements the /dev/null behavior
virtual void inherited_truncate(const infinint &pos) override
truncate file at the give offset
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 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 void inherited_write(const char *a, U_I siz) override
implementation of the write() operation
virtual void inherited_flush_read() override
reset internal engine, flush caches in order to read the data at current position
virtual infinint get_position() const override
get the current read/write position
virtual U_I inherited_read(char *a, U_I size) override
implementation of read() operation
virtual bool skip_to_eof() override
skip to the end of file
virtual void inherited_sync_write() override
write down any pending data
virtual void inherited_terminate() override
destructor-like call, except that it is allowed to throw exceptions
virtual bool skippable(skippability direction, const infinint &amount) override
whether the implementation is able to skip
class to be used as parent to provide checkpoints to inherited classes
void check_self_cancellation() const
Checkpoint test : whether the current libdar call must abort or not.
class generic_file is defined here as well as class fichier
gf_mode
generic_file openning modes
include macro defined by the configure script and some specific additional ones
libdar namespace encapsulate all libdar symbols
to be able to cancel libdar operation while running in a given thread.