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

Function on_gbuf_dump

src/cli/progress_sink.c:281–290  ·  view source on GitHub ↗

Handle gbuf.dump event — capture node/edge counts. */

Source from the content-addressed store, hash-verified

279
280/* Handle gbuf.dump event — capture node/edge counts. */
281static void on_gbuf_dump(const char *line) {
282 char n[CBM_SZ_32] = {0};
283 char e[CBM_SZ_32] = {0};
284 if (extract_kv(line, "nodes", n, (int)sizeof(n))) {
285 s_gbuf_nodes = (int)strtol(n, NULL, CBM_DECIMAL_BASE);
286 }
287 if (extract_kv(line, "edges", e, (int)sizeof(e))) {
288 s_gbuf_edges = (int)strtol(e, NULL, CBM_DECIMAL_BASE);
289 }
290}
291
292/* Handle pipeline.done event. */
293static void on_done(const char *line) {

Callers

nothing calls this directly

Calls 1

extract_kvFunction · 0.85

Tested by

no test coverage detected