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

Function gd_value

src/store/store_graph_digest.c:332–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332static bool gd_value(gd_context_t *g, unsigned char tag, const void *data, size_t length) {
333 uint64_t count = (uint64_t)length;
334 if ((size_t)count != length) {
335 return gd_fail(g, CBM_STORE_GRAPH_DIGEST_LIMIT);
336 }
337 return gd_u8(g, tag) && gd_u64(g, count) && gd_bytes(g, data, length);
338}
339
340static bool gd_literal(gd_context_t *g, const char *literal) {
341 return gd_value(g, GD_TEXT, literal, strlen(literal));

Callers 4

gd_literalFunction · 0.85
gd_table_headerFunction · 0.85
gd_column_valueFunction · 0.85
cbm_store_graph_digestFunction · 0.85

Calls 4

gd_failFunction · 0.85
gd_u8Function · 0.85
gd_u64Function · 0.85
gd_bytesFunction · 0.85

Tested by

no test coverage detected