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

Function to_msgpack

include/behaviortree_cpp/contrib/json.hpp:23562–23567  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

23560 /// @brief create a MessagePack serialization of a given JSON value
23561 /// @sa https://json.nlohmann.me/api/basic_json/to_msgpack/
23562 static std::vector<std::uint8_t> to_msgpack(const basic_json& j)
23563 {
23564 std::vector<std::uint8_t> result;
23565 to_msgpack(j, result);
23566 return result;
23567 }
23568
23569 /// @brief create a MessagePack serialization of a given JSON value
23570 /// @sa https://json.nlohmann.me/api/basic_json/to_msgpack/

Callers 1

Calls 1

write_msgpackMethod · 0.80

Tested by

no test coverage detected