Disk ARchive 2.3.10
|
the null_file class implements the /dev/null behavior More...
#include <null_file.hpp>
Inherits libdar::generic_file, and libdar::thread_cancellation.
Public Member Functions | |
null_file (user_interaction &dialog, gf_mode m) | |
bool | skip (const infinint &pos) |
skip at the absolute position | |
bool | skip_to_eof () |
skip to the end of file | |
bool | skip_relative (signed int x) |
infinint | get_position () |
get the current read/write position | |
Protected Member Functions | |
int | inherited_read (char *a, size_t size) |
int | inherited_write (const char *a, size_t size) |
the null_file class implements the /dev/null behavior
this is a generic_file implementation that emulate the comportment of the /dev/null special file. all that is writen to is lost, and nothing can be read from it (empty file). This is a completed implementation all call are consistent.
Definition at line 49 of file null_file.hpp.