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

Function readiness_hex_encode

src/ui/http_server.c:1741–1749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1739}
1740
1741static void readiness_hex_encode(const uint8_t bytes[CBM_SHA256_DIGEST_LEN],
1742 char out[CBM_SHA256_HEX_LEN + 1U]) {
1743 static const char hex[] = "0123456789abcdef";
1744 for (size_t i = 0; i < CBM_SHA256_DIGEST_LEN; i++) {
1745 out[i * 2U] = hex[bytes[i] >> 4];
1746 out[i * 2U + 1U] = hex[bytes[i] & 0x0fU];
1747 }
1748 out[CBM_SHA256_HEX_LEN] = '\0';
1749}
1750
1751static void handle_ui_readiness(cbm_http_server_t *srv, cbm_http_conn_t *c,
1752 const cbm_http_req_t *req) {

Callers 1

handle_ui_readinessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected