| 12 | //static xmgr::DatabaseMgr& g_dbMgr = xmgr::DatabaseMgr::getInstance(); |
| 13 | |
| 14 | static 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 | |
| 29 | void Route_QueryDB(httplib::Server& svr) |
nothing calls this directly
no outgoing calls
no test coverage detected