Your opinion will help to improve our service
Leave a feedback >#include <userver/dump/operations_file.hpp>
A handle to a dump file. File operations block the thread.
Definition at line 38 of file operations_file.hpp.
Public Member Functions | |
FileReader (std::string path) | |
Opens an existing dump file. | |
void | Finish () override |
Must be called once all data has been read. | |
template<typename T> | |
T | Read () |
Reads binary data. | |
|
explicit |
Opens an existing dump file.
`Error` | on a filesystem error |
|
overridevirtual |
Must be called once all data has been read.
Write
/Read
`Error` | on read operation failure or if there is leftover data |
Implements dump::Reader.
|
inherited |
Reads binary data.
Calls ADL-found Read(reader, To<T>)
`Error` | and any user-thrown std::exception |
Definition at line 124 of file operations.hpp.