#include <fstream.hpp>
|
| ifstream () |
|
| ifstream (const fc::path &file, int m=binary) |
|
| ~ifstream () |
|
void | open (const fc::path &file, int m) |
|
size_t | readsome (char *buf, size_t len) |
|
size_t | readsome (const std::shared_ptr< char > &buffer, size_t max, size_t offset) |
|
ifstream & | read (char *buf, size_t len) |
|
ifstream & | seekg (size_t p, seekdir d=beg) |
|
void | get (char &c) |
|
void | close () |
|
bool | eof () const |
|
virtual char | get () |
|
void | get (char &c) |
|
virtual | ~istream () |
|
istream & | read (char *buf, size_t len) |
|
istream & | read (const std::shared_ptr< char > &buf, size_t len, size_t offset=0) |
|
virtual char | get () |
|
void | get (char &c) |
|
Definition at line 27 of file fstream.hpp.
◆ mode
◆ seekdir
◆ ifstream() [1/2]
fc::ifstream::ifstream |
( |
| ) |
|
◆ ifstream() [2/2]
◆ ~ifstream()
fc::ifstream::~ifstream |
( |
| ) |
|
◆ close()
void fc::ifstream::close |
( |
| ) |
|
◆ eof()
bool fc::ifstream::eof |
( |
| ) |
const |
◆ get() [1/3]
◆ get() [2/3]
◆ get() [3/3]
void fc::ifstream::get |
( |
char & |
c | ) |
|
|
inline |
◆ open()
void fc::ifstream::open |
( |
const fc::path & |
file, |
|
|
int |
m |
|
) |
| |
◆ read()
ifstream & fc::ifstream::read |
( |
char * |
buf, |
|
|
size_t |
len |
|
) |
| |
◆ readsome() [1/2]
size_t fc::ifstream::readsome |
( |
char * |
buf, |
|
|
size_t |
len |
|
) |
| |
|
virtual |
read at least 1 byte or throw, if no data is available this method should block cooperatively until data is available or fc::eof is thrown.
- Exceptions
-
fc::eof | if at least 1 byte cannot be read |
Implements fc::istream.
Definition at line 69 of file fstream.cpp.
◆ readsome() [2/2]
size_t fc::ifstream::readsome |
( |
const std::shared_ptr< char > & |
buffer, |
|
|
size_t |
max, |
|
|
size_t |
offset |
|
) |
| |
|
virtual |
◆ seekg()
The documentation for this class was generated from the following files: