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

Function gb_append_spans

src/graph_buffer/graph_buffer.c:1023–1029  ·  view source on GitHub ↗

Append spans gathered in another buffer (a worker's), re-interned here. */

Source from the content-addressed store, hash-verified

1021
1022/* Append spans gathered in another buffer (a worker's), re-interned here. */
1023static void gb_append_spans(cbm_gbuf_t *gb, gb_span_vec_t *vec, const gb_span_vec_t *from) {
1024 for (size_t i = 0; i < from->count; i++) {
1025 gb_span_t span = from->items[i];
1026 span.file = gb_intern(gb, span.file);
1027 gb_span_push(vec, span);
1028 }
1029}
1030
1031/* A same-QN collision: gather both sides' spans for the surviving node,
1032 * whichever label wins and however many there are. Call it before the

Callers 2

gb_note_collisionFunction · 0.85
gb_adopt_spansFunction · 0.85

Calls 2

gb_internFunction · 0.85
gb_span_pushFunction · 0.85

Tested by

no test coverage detected