MCPcopy Create free account
hub / github.com/AllentDan/LibtorchTutorials / basic_json binary

Function basic_json binary

lesson6-Segmentation/json.hpp:18166–18173  ·  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 in correctly specify

Source from the content-addressed store, hash-verified

18164 @since version 3.8.0
18165 */
18166 JSON_HEDLEY_WARN_UNUSED_RESULT
18167 static basic_json binary(const typename binary_t::container_type& init)
18168 {
18169 auto res = basic_json();
18170 res.m_type = value_t::binary;
18171 res.m_value = init;
18172 return res;
18173 }
18174
18175 /*!
18176 @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