MCPcopy Create free account
hub / github.com/aixed/WeChat-Hook / BytesToHex

Function BytesToHex

src/QueryDB.cpp:14–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12//static xmgr::DatabaseMgr& g_dbMgr = xmgr::DatabaseMgr::getInstance();
13
14static std::string BytesToHex(const uint8_t* data, size_t len)
15{
16 static const char hex[] = "0123456789ABCDEF";
17 std::string out;
18 out.reserve(len * 2);
19
20 for (size_t i = 0; i < len; ++i)
21 {
22 out.push_back(hex[data[i] >> 4]);
23 out.push_back(hex[data[i] & 0x0F]);
24 }
25 return out;
26}
27
28
29void Route_QueryDB(httplib::Server& svr)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected