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

Function remap_id

src/graph_buffer/graph_buffer.c:2273–2275  ·  view source on GitHub ↗

Remap a temp edge ID to its final sequential ID, or 0 if out of range. */

Source from the content-addressed store, hash-verified

2271
2272/* Remap a temp edge ID to its final sequential ID, or 0 if out of range. */
2273static int64_t remap_id(const int64_t *temp_to_final, int64_t max_temp_id, int64_t temp_id) {
2274 return (temp_id < max_temp_id) ? temp_to_final[temp_id] : 0;
2275}
2276
2277/* Build dump-ready node array with sequential IDs. Populates temp_to_final mapping. */
2278static int cmp_dump_vectors_by_id(const void *a, const void *b) {

Callers 1

build_dump_edgesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected