MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / basic_json binary

Function basic_json binary

3rd/nlohmann_json/include/nlohmann/json.hpp:1812–1819  ·  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

1810 @since version 3.8.0
1811 */
1812 JSON_HEDLEY_WARN_UNUSED_RESULT
1813 static basic_json binary(const typename binary_t::container_type& init)
1814 {
1815 auto res = basic_json();
1816 res.m_type = value_t::binary;
1817 res.m_value = init;
1818 return res;
1819 }
1820
1821 /*!
1822 @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