MCPcopy Create free account
hub / github.com/MeisApps/pcbu-desktop / ToHexString

Method ToHexString

common/src/utils/StringUtils.cpp:107–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107std::string StringUtils::ToHexString(const std::vector<uint8_t> &data) {
108 std::string hex;
109 boost::algorithm::hex(data.begin(), data.end(), std::back_inserter(hex));
110 return hex;
111}
112
113std::string StringUtils::ToBase32String(const std::string &str) {
114 const std::string BASE32_ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected