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

Function cni_bytes

src/mcp/test_impact_inventory.c:30–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30bool cni_bytes(cni_context *c, size_t count) {
31 if (c->error.status != CBM_INVENTORY_OK) {
32 return false;
33 }
34 if (count > CNI_BYTE_GAP) {
35 return cni_fail(c, CBM_INVENTORY_STATE);
36 }
37 if (count > c->byte_gap && !cni_poll(c)) {
38 return false;
39 }
40 c->byte_gap -= count;
41 return true;
42}
43
44bool cni_event(cni_context *c) {
45 if (c->error.status != CBM_INVENTORY_OK || (!c->event_gap && !cni_poll(c))) {

Callers 5

cni_oidFunction · 0.85
cni_bindingFunction · 0.85
cni_rootFunction · 0.85
cni_fileFunction · 0.85
cni_copyFunction · 0.85

Calls 2

cni_failFunction · 0.85
cni_pollFunction · 0.85

Tested by

no test coverage detected