26 #ifndef MEMORY_FILE_HPP
27 #define MEMORY_FILE_HPP
55 infinint size()
const {
return data.size(); };
59 virtual bool skippable(skippability direction,
const infinint & amount)
override {
return true; };
this is the interface class from which all other data transfer classes inherit
bool is_terminated() const
the arbitrary large positive integer class
generic_file stored in memory
virtual void inherited_terminate() override
destructor-like call, except that it is allowed to throw exceptions
virtual U_I inherited_read(char *a, U_I size) override
implementation of read() operation
virtual bool skip(const infinint &pos) override
skip at the absolute position
virtual infinint get_position() const override
get the current read/write position
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_truncate(const infinint &pos) override
truncate file at the give offset
virtual bool truncatable(const infinint &pos) const override
whether the implementation is able to truncate to the given position
memory_file()
Constructors & Destructor.
virtual void inherited_write(const char *a, U_I size) 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 bool skippable(skippability direction, const infinint &amount) override
whether the implementation is able to skip
virtual bool skip_relative(S_I x) override
skip relatively to the current position
virtual void inherited_sync_write() override
write down any pending data
virtual bool skip_to_eof() override
skip to the end of file
arbitrary large storage structure
class generic_file is defined here as well as class fichier
@ gf_read_write
read and write access
libdar namespace encapsulate all libdar symbols
contains a class that permits arbitrary large data storage