MCPcopy Create free account
hub / github.com/Luce-Org/lucebox-hub / hex

Function hex

server/src/server/disk_prefix_cache.cpp:27–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25// ─── Utility ────────────────────────────────────────────────────────────
26
27static std::string hex(const uint8_t * data, int len) {
28 static const char hex_chars[] = "0123456789abcdef";
29 std::string out;
30 out.reserve(len * 2);
31 for (int i = 0; i < len; ++i) {
32 out.push_back(hex_chars[data[i] >> 4]);
33 out.push_back(hex_chars[data[i] & 0x0f]);
34 }
35 return out;
36}
37
38static bool mkdir_p(const std::string & path) {
39 std::error_code ec;

Callers 6

initMethod · 0.85
learn_layoutMethod · 0.85
lookupMethod · 0.85
saveMethod · 0.85
enforce_budgetMethod · 0.85
make_pathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected