|
rapidyaml 0.15.2
parse and emit YAML, and do it fast
|
A writer to a memory buffer, in the form of a substr . More...
#include <writer_buf.hpp>
Public Member Functions | |
| WriterBuf (substr sp) noexcept | |
| substr | get_result (bool error_on_excess) const |
| Return the buffer written so far, or optionally throw an error if the buffer was too small. | |
| template<size_t N> | |
| void | append (const char(&a)[N]) noexcept |
| void | append (csubstr s) noexcept |
| void | append (const char c) noexcept |
| void | append (const char c, size_t num_times) noexcept |
Public Attributes | |
| substr | m_buf |
| size_t | m_pos |
A writer to a memory buffer, in the form of a substr .
No overflow occurs; the buffer size is strictly respected.
Definition at line 20 of file writer_buf.hpp.
|
inlinenoexcept |
Definition at line 25 of file writer_buf.hpp.
|
inline |
Return the buffer written so far, or optionally throw an error if the buffer was too small.
Definition at line 31 of file writer_buf.hpp.
Referenced by c4::yml::emit_json(), c4::yml::emit_json(), c4::yml::emit_json(), c4::yml::emit_yaml(), c4::yml::emit_yaml(), and c4::yml::emit_yaml().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
| substr c4::yml::WriterBuf::m_buf |
Definition at line 22 of file writer_buf.hpp.
Referenced by WriterBuf(), append(), append(), append(), append(), and get_result().
| size_t c4::yml::WriterBuf::m_pos |
Definition at line 23 of file writer_buf.hpp.
Referenced by WriterBuf(), append(), append(), append(), append(), and get_result().