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

Function gf_batch_array

src/mcp/test_impact_git.c:1793–1800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1791#endif
1792
1793static void *gf_batch_array(cbm_git_facts_t *facts, size_t count, size_t size,
1794 cbm_git_facts_error_t *error) {
1795 if (count > SIZE_MAX / size) {
1796 gf_limit(facts, error, "Git batch array size overflow");
1797 return NULL;
1798 }
1799 return gf_allocate(facts, &facts->arena, count * size, error);
1800}
1801
1802static bool gf_batch_inventory(gf_batch_work_t *work, cbm_git_facts_error_t *error) {
1803 cbm_git_facts_t *facts = work->facts;

Callers 3

gf_batch_selectionFunction · 0.85
gf_batch_uniqueFunction · 0.85
gf_batch_publishFunction · 0.85

Calls 2

gf_limitFunction · 0.85
gf_allocateFunction · 0.85

Tested by

no test coverage detected