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

Function path_hash

src/foundation/mem_events.c:1390–1397  ·  view source on GitHub ↗

FNV-1a over a NUL-terminated path, without calling the strlen we wrap. */

Source from the content-addressed store, hash-verified

1388
1389/* FNV-1a over a NUL-terminated path, without calling the strlen we wrap. */
1390static uint64_t path_hash(const char *p) {
1391 uint64_t h = 0xcbf29ce484222325ULL;
1392 for (; p && *p; p++) {
1393 h ^= (uint8_t)*p;
1394 h *= 0x100000001b3ULL;
1395 }
1396 return h;
1397}
1398
1399void cbm_work_note_path(cbm_work_kind_t kind, void *site, const char *path, bool failed) {
1400 if (!cbm_memev_enabled()) {

Callers 2

cbm_work_note_pathFunction · 0.85
cbm_work_note_htFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected