Wire Sysio Wire Sysion 1.0.0
|
#include <cfile.hpp>
Public Member Functions | |
cfile () | |
void | set_file_path (fc::path file_path) |
fc::path | get_file_path () const |
bool | is_open () const |
auto | fileno () const |
void | open (const char *mode) |
size_t | tellp () const |
void | seek (long loc) |
void | seek_end (long loc) |
void | skip (long loc) |
void | read (char *d, size_t n) |
void | write (const char *d, size_t n) |
void | flush () |
void | sync () |
void | punch_hole (size_t begin, size_t end) |
size_t | filesystem_block_size () const |
bool | eof () const |
int | getc () |
void | close () |
boost::interprocess::mapping_handle_t | get_mapping_handle () const |
cfile_datastream | create_datastream () |
Static Public Member Functions | |
static bool | supports_hole_punching () |
Static Public Attributes | |
static constexpr const char * | create_or_update_rw_mode = "ab+" |
static constexpr const char * | update_rw_mode = "rb+" |
static constexpr const char * | truncate_rw_mode = "wb+" |
Wrapper for c-file access that provides a similar interface as fstream without all the overhead of std streams. std::ios_base::failure exception thrown for errors.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
mode | is any mode supported by fopen Tested with: "ab+" - open for binary update - create if does not exist "rb+" - open for binary update - file must exist |
Definition at line 65 of file cfile.hpp.
|
inline |
Definition at line 159 of file cfile.hpp.
|
inline |
Definition at line 114 of file cfile.hpp.
|
inline |
Definition at line 87 of file cfile.hpp.
|
inline |
Definition at line 96 of file cfile.hpp.
|
inline |
|
inline |
Definition at line 105 of file cfile.hpp.
|
inlinestatic |
|
inline |
Definition at line 143 of file cfile.hpp.
|
inline |
Definition at line 79 of file cfile.hpp.
|
inline |
Definition at line 127 of file cfile.hpp.
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |