Function deserialize_key

Synopsis

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

size_t deserialize_key(fmt::base64_wrapper v) const

Description

decode the base64-encoded key deserialize and assign the decoded blob to the given buffer/

Returns
the size of base64-decoded blob

Source

Lines 22-28 in src/c4/yml/node.cpp. Line 292 in src/c4/yml/node.hpp.

size_t NodeRef::deserialize_key(c4::fmt::base64_wrapper w) const
{
    RYML_ASSERT( ! is_seed());
    RYML_ASSERT(valid());
    RYML_ASSERT(get() != nullptr);
    return from_chars(key(), &w);
}





Add Discussion as Guest

Log in