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

Function edge_deep_copy

src/cypher/cypher.c:2468–2473  ·  view source on GitHub ↗

Deep copy an edge (binding owns the strings) */

Source from the content-addressed store, hash-verified

2466
2467/* Deep copy an edge (binding owns the strings) */
2468static void edge_deep_copy(cbm_edge_t *dst, const cbm_edge_t *src) {
2469 *dst = *src;
2470 dst->project = heap_strdup(src->project);
2471 dst->type = heap_strdup(src->type);
2472 dst->properties_json = heap_strdup(src->properties_json);
2473}
2474
2475static void edge_fields_free(cbm_edge_t *e) {
2476 safe_str_free(&e->project);

Callers 2

binding_set_edgeFunction · 0.85
binding_copyFunction · 0.85

Calls 1

heap_strdupFunction · 0.70

Tested by

no test coverage detected