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

Function cif_bytes

src/discover/inventory_guard.c:29–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29bool cif_bytes(cif_context *c, size_t count) {
30 if (c->error.status != CBM_INVENTORY_OK) {
31 return false;
32 }
33 if (count > CIF_BYTE_GAP) {
34 return cif_fail(c, CBM_INVENTORY_STATE);
35 }
36 if (count > c->byte_gap && !cif_poll(c)) {
37 return false;
38 }
39 c->byte_gap -= count;
40 return true;
41}
42
43bool cif_event(cif_context *c) {
44 if (c->error.status != CBM_INVENTORY_OK || (!c->event_gap && !cif_poll(c))) {

Callers 15

cif_control_indexFunction · 0.85
cif_hash_controlFunction · 0.85
cif_load_controlFunction · 0.85
cif_commonFunction · 0.85
cif_prefixesFunction · 0.85
cif_parentFunction · 0.85
cif_link_directoriesFunction · 0.85
cif_link_filesFunction · 0.85
cif_copyFunction · 0.85
cif_compareFunction · 0.85
cif_rootFunction · 0.85
cif_file_pathFunction · 0.85

Calls 2

cif_failFunction · 0.85
cif_pollFunction · 0.85

Tested by

no test coverage detected