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

Function import_array

src/pipeline/doc_links_cs.c:2628–2634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2626}
2627
2628static void *import_array(cs_index_t *ix, size_t n, size_t size) {
2629 if (n > SIZE_MAX / size) {
2630 ix->oom = true;
2631 return NULL;
2632 }
2633 return n ? ix_alloc(ix, n * size) : NULL;
2634}
2635
2636/* One repository-wide pass, never one member-table expansion per import.
2637 * Include test-only names and extras: the ordinary resolver, not this

Callers 2

build_name_scopesFunction · 0.85
build_using_indexFunction · 0.85

Calls 1

ix_allocFunction · 0.70

Tested by

no test coverage detected