MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / basic_json binary

Function basic_json binary

Source/Utils/json.hpp:18165–18172  ·  view source on GitHub ↗

! @brief explicitly create a binary array (without subtype) Creates a JSON binary array value from a given binary container. Binary values are part of various binary formats, such as CBOR, MessagePack, and BSON. This constructor is used to create a value for serialization to those formats. @note Note, this function exists because of the difficulty

Source from the content-addressed store, hash-verified

18163 @since version 3.8.0
18164 */
18165 JSON_HEDLEY_WARN_UNUSED_RESULT
18166 static basic_json binary(const typename binary_t::container_type& init)
18167 {
18168 auto res = basic_json();
18169 res.m_type = value_t::binary;
18170 res.m_value = init;
18171 return res;
18172 }
18173
18174 /*!
18175 @brief explicitly create a binary array (with subtype)

Callers

nothing calls this directly

Calls 1

basic_jsonFunction · 0.70

Tested by

no test coverage detected