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

Function work_row

tests/test_mem_events.c:328–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328static bool work_row(cbm_work_kind_t kind, void *site, cbm_work_row_t *out) {
329 static cbm_work_row_t rows[128];
330 size_t n = cbm_work_rows(rows, 128);
331 for (size_t i = 0; i < n; i++) {
332 if (rows[i].kind == kind && rows[i].site == (uintptr_t)site) {
333 *out = rows[i];
334 return true;
335 }
336 }
337 return false;
338}
339
340/* The fill pattern is how the layer sees memory nobody wrote. A 4 KB block
341 * that got 100 bytes: 3,996 bytes never written, and of the 1,000 requested

Callers 1

test_mem_events.cFile · 0.85

Calls 1

cbm_work_rowsFunction · 0.85

Tested by

no test coverage detected