BitShares-Core
6.1.0
BitShares blockchain implementation and command-line interface software
|
#include <fstream.hpp>
Classes | |
class | impl |
Public Types | |
enum | mode { in, binary } |
enum | seekdir { beg, cur, end } |
Public Member Functions | |
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 | ~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.
enum fc::ifstream::mode |
Enumerator | |
---|---|
in | |
binary |
Definition at line 29 of file fstream.hpp.
Enumerator | |
---|---|
beg | |
cur | |
end |
Definition at line 30 of file fstream.hpp.
fc::ifstream::ifstream | ( | ) |
Definition at line 55 of file fstream.cpp.
Definition at line 57 of file fstream.cpp.
fc::ifstream::~ifstream | ( | ) |
Definition at line 62 of file fstream.cpp.
void fc::ifstream::close | ( | ) |
Definition at line 103 of file fstream.cpp.
bool fc::ifstream::eof | ( | ) | const |
Definition at line 105 of file fstream.cpp.
|
inline |
Definition at line 42 of file fstream.hpp.
void fc::ifstream::open | ( | const fc::path & | file, |
int | m | ||
) |
Definition at line 64 of file fstream.cpp.
ifstream & fc::ifstream::read | ( | char * | buf, |
size_t | len | ||
) |
Definition at line 87 of file fstream.cpp.
|
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.
fc::eof | if at least 1 byte cannot be read |
Implements fc::istream.
Definition at line 69 of file fstream.cpp.
|
virtual |
Implements fc::istream.
Definition at line 82 of file fstream.cpp.
Definition at line 95 of file fstream.cpp.