#include <genesis/utils/io/input_reader.hpp>
Read bytes from an InputSource into a char buffer
.
The reading is done synchronously, that is, reading occurs on request. This is usually slower than asynchronous reading (see AsynchronousReader).
Implementation details inspired by fast-cpp-csv-parser by Ben Strasser, see also Acknowledgements.
Definition at line 252 of file input_reader.hpp.
Public Member Functions | |
SynchronousReader (std::shared_ptr< BaseInputSource > input_source) | |
SynchronousReader (SynchronousReader &&)=default | |
SynchronousReader (SynchronousReader const &)=delete | |
~SynchronousReader ()=default | |
std::string | class_name () const |
size_t | finish_reading () |
std::shared_ptr< BaseInputSource > | input_source () const |
SynchronousReader & | operator= (SynchronousReader &&)=default |
SynchronousReader & | operator= (SynchronousReader const &)=delete |
void | start_reading (char *target_buffer, size_t target_size) |
bool | valid () const |
|
inline |
Definition at line 260 of file input_reader.hpp.
|
default |
|
delete |
|
default |
|
inline |
Definition at line 288 of file input_reader.hpp.
|
inline |
Definition at line 303 of file input_reader.hpp.
|
inline |
Definition at line 283 of file input_reader.hpp.
|
default |
|
delete |
|
inline |
Definition at line 297 of file input_reader.hpp.
|
inline |
Definition at line 278 of file input_reader.hpp.