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

Function to_cbor

Source/external/json.hpp:23391–23394  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

23389 /// @brief create a CBOR serialization of a given JSON value
23390 /// @sa https://json.nlohmann.me/api/basic_json/to_cbor/
23391 static void to_cbor(const basic_json& j, detail::output_adapter<std::uint8_t> o)
23392 {
23393 binary_writer<std::uint8_t>(o).write_cbor(j);
23394 }
23395
23396 /// @brief create a CBOR serialization of a given JSON value
23397 /// @sa https://json.nlohmann.me/api/basic_json/to_cbor/

Callers 1

json.hppFile · 0.85

Calls 1

write_cborMethod · 0.80

Tested by

no test coverage detected