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

Function readiness_hex_encode

src/ui/http_server.c:3130–3138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3128}
3129
3130static void readiness_hex_encode(const uint8_t bytes[CBM_SHA256_DIGEST_LEN],
3131 char out[CBM_SHA256_HEX_LEN + 1U]) {
3132 static const char hex[] = "0123456789abcdef";
3133 for (size_t i = 0; i < CBM_SHA256_DIGEST_LEN; i++) {
3134 out[i * 2U] = hex[bytes[i] >> 4];
3135 out[i * 2U + 1U] = hex[bytes[i] & 0x0fU];
3136 }
3137 out[CBM_SHA256_HEX_LEN] = '\0';
3138}
3139
3140static void handle_ui_readiness(cbm_http_server_t *srv, cbm_http_conn_t *c,
3141 const cbm_http_req_t *req) {

Callers 1

handle_ui_readinessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected