MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / to_cbor

Function to_cbor

include/behaviortree_cpp/contrib/json.hpp:23548–23551  ·  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

23546 /// @brief create a CBOR serialization of a given JSON value
23547 /// @sa https://json.nlohmann.me/api/basic_json/to_cbor/
23548 static void to_cbor(const basic_json& j, detail::output_adapter<std::uint8_t> o)
23549 {
23550 binary_writer<std::uint8_t>(o).write_cbor(j);
23551 }
23552
23553 /// @brief create a CBOR serialization of a given JSON value
23554 /// @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