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

Function edge_deep_copy

src/cypher/cypher.c:2267–2272  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2265
2266/* Deep copy an edge (binding owns the strings) */
2267static void edge_deep_copy(cbm_edge_t *dst, const cbm_edge_t *src) {
2268 *dst = *src;
2269 dst->project = heap_strdup(src->project);
2270 dst->type = heap_strdup(src->type);
2271 dst->properties_json = heap_strdup(src->properties_json);
2272}
2273
2274static void edge_fields_free(cbm_edge_t *e) {
2275 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