1 #ifndef C4_YML_EMIT_BUF_HPP_
2 #define C4_YML_EMIT_BUF_HPP_
6 #ifndef C4_YML_COMMON_HPP_
16 template<
class Writer>
A YAML/JSON emitter, templated on a writer class such as WriterBuf, WriterFile, or WriterOStream...
substr emit_json(Tree const &t, EmitOptions const &opts, substr buf, bool error_on_excess)
(1) emit JSON to the given buffer.
Common utilities and infrastructure used by ryml.
RYML_ID_TYPE id_type
The type of a node id in the YAML tree; to override the default type, define the macro RYML_ID_TYPE t...
Holds a pointer to an existing tree, and a node id.
substr emit_yaml(Tree const &t, EmitOptions const &opts, substr buf, bool error_on_excess)
(1) emit YAML to the given buffer.
A lightweight object containing options to be used when emitting.