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

Function ht_alloc_in

src/foundation/hash_table.c:36–38  ·  view source on GitHub ↗

Instantiate a Verstable map of (const char* → void*). The single * include below generates static inline functions named cbm_vt_init, * cbm_vt_cleanup, cbm_vt_get, cbm_vt_insert, etc., plus the cbm_vt * struct itself. */ Verstable allocates its bucket/entry blocks through the memory core; the * table's ctx is the class those blocks are charged to (Verstable hands the * ctx and the block size

Source from the content-addressed store, hash-verified

34 * 8.5M node keys and 15.8M edge keys on the kernel were memory no class
35 * could see. */
36static void *ht_alloc_in(size_t size, cbm_mem_class_t *cls) {
37 return cbm_alloc(*cls, size);
38}
39static void ht_free_in(void *ptr, size_t size, cbm_mem_class_t *cls) {
40 (void)size;
41 cbm_free(*cls, ptr);

Callers

nothing calls this directly

Calls 1

cbm_allocFunction · 0.85

Tested by

no test coverage detected