Function set_val_serialized

Summary

#include <src/c4/yml/node.hpp>

(1) template <class T>
    size_t set_val_serialized(T const &v)

(2) size_t set_val_serialized(fmt::const_base64_wrapper w)

Function overload

Synopsis

#include <src/c4/yml/node.hpp>

template <class T>
size_t set_val_serialized(T const &v)

Description

No description yet.

Source

Lines 273-280 in src/c4/yml/node.hpp.

template<class T>
inline size_t set_val_serialized(T const& v)
{
    _C4RV();
    csubstr s = m_tree->to_arena(v);
    m_tree->_set_val(m_id, s);
    return s.len;
}

Synopsis

#include <src/c4/yml/node.hpp>

size_t set_val_serialized(fmt::const_base64_wrapper w)

Description

encode a blob as base64, then assign the result to the node's val

Returns
the size of base64-encoded blob

Source

Line 287 in src/c4/yml/node.hpp.






Add Discussion as Guest

Log in