|
rapidyaml 0.14.0
parse and emit YAML, and do it fast
|
Functions called by ryml to allocate/free memory and to report errors. More...
Classes | |
| struct | c4::yml::Callbacks |
| A c-style callbacks class to customize behavior on errors or allocation. More... | |
Typedefs | |
| using | c4::yml::pfn_allocate = void* (*)(size_t len, void* hint, void *user_data) |
| the type of the function used to allocate memory; ryml will only allocate memory through this callback. | |
| using | c4::yml::pfn_free = void (*)(void* mem, size_t size, void *user_data) |
| the type of the function used to free memory; ryml will only free memory through this callback. | |
| using | c4::yml::pfn_error_basic = void (*) (csubstr msg, ErrorDataBasic const& errdata, void *user_data) |
| the type of the function used to report basic errors. | |
| using | c4::yml::pfn_error_parse = void (*) (csubstr msg, ErrorDataParse const& errdata, void *user_data) |
| the type of the function used to report parse errors. | |
| using | c4::yml::pfn_error_visit = void (*) (csubstr msg, ErrorDataVisit const& errdata, void *user_data) |
| the type of the function used to report visit errors. | |
Functions | |
| void | c4::yml::set_callbacks (Callbacks const &c) |
| set the global callbacks for the library; after a call to this function, these callbacks will be used by newly created objects (unless they are copying older objects with different callbacks). | |
| Callbacks const & | c4::yml::get_callbacks () |
| get the global callbacks | |
| void | c4::yml::reset_callbacks () |
| set the global callbacks back to their defaults. | |
Functions called by ryml to allocate/free memory and to report errors.
| using c4::yml::pfn_allocate = void* (*)(size_t len, void* hint, void *user_data) |
the type of the function used to allocate memory; ryml will only allocate memory through this callback.
Definition at line 495 of file common.hpp.
| using c4::yml::pfn_free = void (*)(void* mem, size_t size, void *user_data) |
the type of the function used to free memory; ryml will only free memory through this callback.
Definition at line 500 of file common.hpp.
| using c4::yml::pfn_error_basic = void (*) (csubstr msg, ErrorDataBasic const& errdata, void *user_data) |
the type of the function used to report basic errors.
Definition at line 513 of file common.hpp.
| using c4::yml::pfn_error_parse = void (*) (csubstr msg, ErrorDataParse const& errdata, void *user_data) |
the type of the function used to report parse errors.
Definition at line 524 of file common.hpp.
| using c4::yml::pfn_error_visit = void (*) (csubstr msg, ErrorDataVisit const& errdata, void *user_data) |
the type of the function used to report visit errors.
Definition at line 535 of file common.hpp.
| void c4::yml::set_callbacks | ( | Callbacks const & | c | ) |
set the global callbacks for the library; after a call to this function, these callbacks will be used by newly created objects (unless they are copying older objects with different callbacks).
If RYML_NO_DEFAULT_CALLBACKS is defined, it is mandatory to call this function prior to using any other library facility.
Definition at line 89 of file common.cpp.
| Callbacks const & c4::yml::get_callbacks | ( | ) |
get the global callbacks
Definition at line 94 of file common.cpp.
| void c4::yml::reset_callbacks | ( | ) |
set the global callbacks back to their defaults.
Definition at line 99 of file common.cpp.