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

Function gd_zero

tests/test_store_graph_digest.c:75–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 return s;
74}
75static bool gd_zero(const cbm_store_graph_digest_t *v) {
76 if (v->version || v->rows || v->framed_bytes) return false;
77 for (size_t i=0;i<sizeof(v->sha256);i++) if (v->sha256[i]) return false;
78 return true;
79}
80static bool gd_equal(const cbm_store_graph_digest_t *a,const cbm_store_graph_digest_t *b) {
81 return a->version==b->version && a->rows==b->rows && a->framed_bytes==b->framed_bytes &&
82 memcmp(a->sha256,b->sha256,sizeof(a->sha256))==0;

Callers 2

gd_rejectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected