duckstation

duckstation, but archived from the revision just before upstream changed it to a proprietary software project, this version is the libre one
git clone https://git.neptards.moe/u3shit/duckstation.git
Log | Files | Refs | README | LICENSE

node.cpp (711B)


      1 #include "c4/yml/node.hpp"
      2 
      3 namespace c4 {
      4 namespace yml {
      5 
      6 
      7 
      8 
      9 //-----------------------------------------------------------------------------
     10 //-----------------------------------------------------------------------------
     11 //-----------------------------------------------------------------------------
     12 
     13 size_t NodeRef::set_key_serialized(c4::fmt::const_base64_wrapper w)
     14 {
     15     _apply_seed();
     16     csubstr encoded = this->to_arena(w);
     17     this->set_key(encoded);
     18     return encoded.len;
     19 }
     20 
     21 size_t NodeRef::set_val_serialized(c4::fmt::const_base64_wrapper w)
     22 {
     23     _apply_seed();
     24     csubstr encoded = this->to_arena(w);
     25     this->set_val(encoded);
     26     return encoded.len;
     27 }
     28 
     29 } // namespace yml
     30 } // namespace c4