! @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
| 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) |
nothing calls this directly
no test coverage detected