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

Function gd_project_argument

src/store/store_graph_digest.c:648–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646}
647
648static bool gd_project_argument(gd_context_t *g, const unsigned char *project, size_t length) {
649 while (length) {
650 size_t chunk = length > GD_CHUNK_BYTES ? GD_CHUNK_BYTES : length;
651 if (!gd_check(g)) {
652 return false;
653 }
654 if (memchr(project, 0, chunk)) {
655 return gd_fail(g, CBM_STORE_GRAPH_DIGEST_INVALID);
656 }
657 if (!gd_check(g)) {
658 return false;
659 }
660 project += chunk;
661 length -= chunk;
662 }
663 return true;
664}
665
666cbm_store_graph_digest_status_t cbm_store_graph_digest(
667 cbm_store_read_scope_t *scope, const unsigned char *project, size_t project_len,

Callers 1

cbm_store_graph_digestFunction · 0.85

Calls 2

gd_checkFunction · 0.85
gd_failFunction · 0.85

Tested by

no test coverage detected