commit | a8d7b068654ac0bb01047046db0546d4b25d2233 | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Thu Aug 08 15:56:35 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Thu Aug 08 15:56:35 2013 -0700 |
tree | c2774bf81793f8186a83546ef068e8351a978a3c | |
parent | 21844fcddb24797deb837670317e87095c201773 [diff] [blame] |
Added ndn::toHex
diff --git a/ndn-cpp/common.hpp b/ndn-cpp/common.hpp index e477687..f82a77e 100644 --- a/ndn-cpp/common.hpp +++ b/ndn-cpp/common.hpp
@@ -41,7 +41,14 @@ if (value) vec.insert(vec.begin(), value, value + valueLength); } - + +/** + * Return the hex representation of the bytes in array. + * @param array The array of bytes. + * @return Hex string. + */ +std::string toHex(const std::vector<unsigned char> &array); + } #endif