|
rapidyaml
0.16.0
parseandemitYAML,anddoitfast
|
Shows how user-provided functions fit into ryml's structure. More...
Shows how user-provided functions fit into ryml's structure.
This describes how ryml implements the serialization pipeline. This is useful to understand how the user-provided read() and write() functions fit and interact with ryml's implementation.
Note also that in a pinch, you can override any non-member function mentioned below; however, there shouldn't be any reason to do so unless explicitly noted. If you do feel the need to override other functions, please submit also an issue at https://github.com/biojppm/rapidyaml/issues to discuss whether this is an API oversight or maybe a misunderstanding, and hopefully this documentation can be improved.
ryml implements serialization in the following way:
.nan or .inf, and then dispatches to c4::ftoa() or c4::dtoa()
ryml implements deserialization in the following way:
+ and compares against special YAML float strings such as .nan or .inf, and finally calls c4::from_chars() which dispatches to either c4::atoi() or c4::atof(), or ...+ and finally calls c4::from_chars() wrapping either c4::atoi() or c4::atou()