MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / basic_json from_msgpack

Function basic_json from_msgpack

extern/json/json.hpp:23609–23619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23607 /// @sa https://json.nlohmann.me/api/basic_json/from_msgpack/
23608 template<typename InputType>
23609 JSON_HEDLEY_WARN_UNUSED_RESULT
23610 static basic_json from_msgpack(InputType&& i,
23611 const bool strict = true,
23612 const bool allow_exceptions = true)
23613 {
23614 basic_json result;
23615 detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
23616 auto ia = detail::input_adapter(std::forward<InputType>(i));
23617 const bool res = binary_reader<decltype(ia)>(std::move(ia), input_format_t::msgpack).sax_parse(input_format_t::msgpack, &sdp, strict);
23618 return res ? result : basic_json(value_t::discarded);
23619 }
23620
23621 /// @brief create a JSON value from an input in MessagePack format
23622 /// @sa https://json.nlohmann.me/api/basic_json/from_msgpack/

Callers

nothing calls this directly

Calls 4

input_adapterFunction · 0.85
moveFunction · 0.85
basic_jsonFunction · 0.85
sax_parseMethod · 0.80

Tested by

no test coverage detected