Yes, they do convert the map or list to binary. The AMQP specification defines the encoding at the wire level for all the various supported data types such as maps, lists, fixed-width fields such as numbers and strings, and so on. Andy On Oct 22, 2012, at 10:15 AM, Joe Ly wrote: > Hi all, > > I'm wondering if anyone in here knows the details of how encode/decode functions work? Do those functions convert Variant::Map/Variant::List to binary stream and send that binary stream over the network? How do they do that? > > Below is the decode/encode functions I am interested: > > Method: decode > C++ void decode(const Message& message, qpid::types::Variant::Map& map, const > std::string& encoding = std::string()); > C++ void decode(const Message& message, qpid::types::Variant::List& list, const > std::string& encoding = std::string()); > > Method: encode > C++ void encode(const qpid::types::Variant::Map& map, Message& message, const > std::string& encoding = std::string()); > C++ void encode(const qpid::types::Variant::List& list, Message& message, const > std::string& encoding = std::string()); > > > > Thanks, > > > Joe Ly > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org > For additional commands, e-mail: users-help@qpid.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org