dep: Add rapidyaml
This commit is contained in:
30
dep/rapidyaml/src/c4/yml/node.cpp
Normal file
30
dep/rapidyaml/src/c4/yml/node.cpp
Normal file
@ -0,0 +1,30 @@
|
||||
#include "c4/yml/node.hpp"
|
||||
|
||||
namespace c4 {
|
||||
namespace yml {
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
size_t NodeRef::set_key_serialized(c4::fmt::const_base64_wrapper w)
|
||||
{
|
||||
_apply_seed();
|
||||
csubstr encoded = this->to_arena(w);
|
||||
this->set_key(encoded);
|
||||
return encoded.len;
|
||||
}
|
||||
|
||||
size_t NodeRef::set_val_serialized(c4::fmt::const_base64_wrapper w)
|
||||
{
|
||||
_apply_seed();
|
||||
csubstr encoded = this->to_arena(w);
|
||||
this->set_val(encoded);
|
||||
return encoded.len;
|
||||
}
|
||||
|
||||
} // namespace yml
|
||||
} // namespace c4
|
||||
Reference in New Issue
Block a user