MCPcopy Create free account
hub / github.com/Niko1221/Strata / idle_bytes

Method idle_bytes

engine/src/core/conversation_cache_test.cpp:1205–1205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1203 struct FakePool final : SegmentPoolBudget {
1204 size_t idle = 0, shrinks = 0, shrunk = 0;
1205 size_t idle_bytes() const override { return idle; }
1206 size_t shrink(size_t want) override { ++shrinks; const size_t g = std::min(want, idle); idle -= g; shrunk += g; return g; }
1207 };
1208 auto sized = [](int32_t id, size_t bytes) { SavedConversation s = image({id}); s.live.gdn.resize(bytes, 7); return s; };

Callers 2

mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected