MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / main_daemon_ctl_hex_encode

Function main_daemon_ctl_hex_encode

src/main.c:2259–2267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2257} main_daemon_ctl_ui_readiness_t;
2258
2259static void main_daemon_ctl_hex_encode(const uint8_t bytes[CBM_SHA256_DIGEST_LEN],
2260 char out[CBM_SHA256_HEX_LEN + 1U]) {
2261 static const char hex[] = "0123456789abcdef";
2262 for (size_t i = 0; i < CBM_SHA256_DIGEST_LEN; i++) {
2263 out[i * 2U] = hex[bytes[i] >> 4];
2264 out[i * 2U + 1U] = hex[bytes[i] & 0x0fU];
2265 }
2266 out[CBM_SHA256_HEX_LEN] = '\0';
2267}
2268
2269static bool main_daemon_ctl_ui_readiness_prepare(cbm_daemon_runtime_client_t *client,
2270 main_daemon_ctl_ui_readiness_t *readiness) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected