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

Function query_graph_hex_span

src/mcp/mcp.c:5722–5732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5720}
5721
5722static bool query_graph_hex_span(const char *begin, const char *end, size_t expected) {
5723 if (!begin || !end || end < begin || (size_t)(end - begin) != expected) {
5724 return false;
5725 }
5726 for (const char *digit = begin; digit < end; digit++) {
5727 if (!isxdigit((unsigned char)*digit)) {
5728 return false;
5729 }
5730 }
5731 return true;
5732}
5733
5734/* Decode and validate every token field that does not require executing the
5735 * query. The materialization digest itself is checked immediately after the

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected