Function RosMsgParser::deserializeToMsgpack

Function Documentation

bool RosMsgParser::deserializeToMsgpack(const Parser &parser, Span<const uint8_t> buffer, Deserializer *deserializer, std::vector<uint8_t> &msgpack_data)

Deserialize directly to MessagePack, bypassing FlatMessage.

Uses MsgpackMessageWriter with walkSchema to produce msgpack output in a single pass. This is faster than deserialize() + convertToMsgpack() because it avoids the intermediate FlatMessage allocation and FieldLeaf copies.