A general interface for binary data output.
More...
#include <userver/dump/operations.hpp>
|
| template<typename T > |
| void | Write (const T &data) |
| | Writes binary data.
|
| |
| virtual void | Finish ()=0 |
| | Must be called once all data has been written.
|
| |
|
| virtual void | WriteRaw (std::string_view data)=0 |
| | Writes binary data.
|
| |
A general interface for binary data output.
Definition at line 23 of file operations.hpp.
◆ Finish()
| virtual void dump::Writer::Finish |
( |
| ) |
|
|
pure virtual |
◆ Write()
template<typename T >
| void dump::Writer::Write |
( |
const T & |
data | ) |
|
Writes binary data.
Calls ADL-found Write(writer, data)
- Exceptions
-
| `Error` | and any user-thrown std::exception |
Definition at line 90 of file operations.hpp.
◆ WriteRaw()
| virtual void dump::Writer::WriteRaw |
( |
std::string_view |
data | ) |
|
|
protectedpure virtual |
Writes binary data.
Unlike Write, doesn't write the size of data
- Exceptions
-
| `Error` | on write operation failure |
◆ WriteStringViewUnsafe
| void WriteStringViewUnsafe |
( |
Writer & |
writer, |
|
|
std::string_view |
value |
|
) |
| |
|
friend |
Writes a non-size-prefixed std::string_view
- Note
writer.Write(str) should normally be used instead to write strings
The documentation for this class was generated from the following file: