32 #include "../my_config.h" 62 tronc & operator = (
const tronc & ref) =
delete;
116 void set_back_current_position();
117 void detruit() noexcept {
if(own_ref && ref !=
nullptr)
delete ref; };
void modify()
modify the tronc object to become transparent and allow unrestricted access to the underlyuing object...
virtual void inherited_write(const char *a, U_I size) override
inherited from generic_file
virtual bool skippable(skippability direction, const infinint &amount) override
inherited from generic_file
virtual void inherited_sync_write() override
write down any pending data
tronc(generic_file *f, const infinint &offset, const infinint &size, bool own_f=false)
constructor
generic_file * ref
global generic file of which to take a piece
class generic_file is defined here as well as class fichierthe generic_file interface is widely used ...
virtual infinint get_position() const override
inherited from generic_file
void check_underlying_position_while_reading_or_writing(bool mode)
virtual void inherited_read_ahead(const infinint &amount) override
inherited from generic_file
virtual bool skip_to_eof() override
inherited from generic_file
gf_mode
generic_file openning modes
bool limited
whether the sz argument is to be considered
virtual void inherited_flush_read() override
reset internal engine, flush caches in order to read the data at current position ...
virtual void inherited_terminate() override
destructor-like call, except that it is allowed to throw exceptions
virtual bool skip(const infinint &pos) override
inherited from generic_file
bool own_ref
whether we own ref (and must destroy it when no more needed)
virtual bool skip_relative(S_I x) override
inherited from generic_file
switch module to limitint (32 ou 64 bits integers) or infinint
infinint sz
length of the portion to consider
this is the interface class from which all other data transfer classes inherit
infinint current
inside position of the next read or write
void sync_write()
write any pending data
the arbitrary large positive integer class
makes a segment of a generic_file appear like a real generic_file
infinint start
offset in the global generic file to start at
void terminate()
destructor-like call, except that it is allowed to throw exceptions
bool check_pos
whether to check and eventually adjust (seek) the position of the underlying layer at each read or wr...
libdar namespace encapsulate all libdar symbols
virtual U_I inherited_read(char *a, U_I size) override
inherited from generic_file