#include <cstdint>
#include <cstring>
#include <cassert>
-#include <iomanip>
-#include <sstream>
#include <unordered_map>
namespace CKM {
//raw to hex string conversion to print persistent storage data ID
static std::string rawToHexString(const RawBuffer &raw)
{
- std::string dump;
-
- for (auto &e : raw) {
- char buf[3];
- snprintf(buf, sizeof(buf), "%02x", (e & 0xff));
- dump.push_back(buf[0]);
- dump.push_back(buf[1]);
- }
-
- return dump;
+ return hexDump<std::string>(raw);
}
/*