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

Function site_row

tests/test_mem_events.c:34–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34static bool site_row(void *site, cbm_memev_site_t *out) {
35 static cbm_memev_site_t rows[64];
36 size_t n = cbm_memev_sites(rows, 64);
37 for (size_t i = 0; i < n; i++) {
38 if (rows[i].site == (uintptr_t)site) {
39 *out = rows[i];
40 return true;
41 }
42 }
43 return false;
44}
45
46/* Requested vs usable is the allocator's slack, and it belongs to the site
47 * that asked: 3 x (100 requested, 112 handed out) = 36 bytes nobody can use. */

Callers 1

test_mem_events.cFile · 0.85

Calls 1

cbm_memev_sitesFunction · 0.85

Tested by

no test coverage detected