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

Function remap_id

src/graph_buffer/graph_buffer.c:1404–1406  ·  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

1402
1403/* Remap a temp edge ID to its final sequential ID, or 0 if out of range. */
1404static int64_t remap_id(const int64_t *temp_to_final, int64_t max_temp_id, int64_t temp_id) {
1405 return (temp_id < max_temp_id) ? temp_to_final[temp_id] : 0;
1406}
1407
1408/* Build dump-ready node array with sequential IDs. Populates temp_to_final mapping. */
1409static 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