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

Function cbm_ht_get_key

src/foundation/hash_table.c:177–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177const char *cbm_ht_get_key(const CBMHashTable *ht, const char *key) {
178 if (!ht || !key)
179 return NULL;
180 cbm_vt_itr itr = cbm_vt_get(&ht->vt, key);
181 HT_LOOKED_UP(ht, key, !cbm_vt_is_end(itr));
182 if (cbm_vt_is_end(itr))
183 return NULL;
184 return itr.data->key;
185}
186
187void *cbm_ht_delete(CBMHashTable *ht, const char *key) {
188 if (!ht || !key)

Callers 15

rg_assign_regionsFunction · 0.85
mx_build_jsonFunction · 0.85
gc_note_rootFunction · 0.85
k8s_bundle_nameFunction · 0.85
bind_nodesFunction · 0.85
lsp_idx_keep_bestFunction · 0.85
sh_t_kustFunction · 0.85
sh_t_chartFunction · 0.85
sh_linkFunction · 0.85
pxc_append_resultsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected