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

Function class_sub

src/foundation/mem_core.c:176–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176static void class_sub(cbm_mem_class_t cls, size_t bytes, size_t blocks) {
177 cls = class_index(cls);
178 mem_delta_t *d = &tl_delta[cls];
179 d->bytes -= (long)bytes;
180 d->blocks -= (long)blocks;
181 if (d->bytes <= -MEM_FLUSH_BYTES || d->blocks <= -MEM_FLUSH_BLOCKS) {
182 class_flush_one(cls);
183 }
184}
185
186#ifdef CBM_USABLE_SIZE_UNAVAILABLE
187static size_t charge_size(const void *block, size_t requested) {

Callers 3

cbm_reallocFunction · 0.85
cbm_freeFunction · 0.85

Calls 2

class_indexFunction · 0.85
class_flush_oneFunction · 0.85

Tested by

no test coverage detected