MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / to_ubjson

Function to_ubjson

Source/external/json.hpp:23428–23435  ·  view source on GitHub ↗

@brief create a UBJSON serialization of a given JSON value @sa https://json.nlohmann.me/api/basic_json/to_ubjson/

Source from the content-addressed store, hash-verified

23426 /// @brief create a UBJSON serialization of a given JSON value
23427 /// @sa https://json.nlohmann.me/api/basic_json/to_ubjson/
23428 static std::vector<std::uint8_t> to_ubjson(const basic_json& j,
23429 const bool use_size = false,
23430 const bool use_type = false)
23431 {
23432 std::vector<std::uint8_t> result;
23433 to_ubjson(j, result, use_size, use_type);
23434 return result;
23435 }
23436
23437 /// @brief create a UBJSON serialization of a given JSON value
23438 /// @sa https://json.nlohmann.me/api/basic_json/to_ubjson/

Callers

nothing calls this directly

Calls 1

write_ubjsonMethod · 0.80

Tested by

no test coverage detected