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

Method intact

engine/src/core/conversation_buffer_pool_test.cpp:70–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 }
69 }
70 bool intact(uint8_t tag) const {
71 for (size_t i = 0; i < buffers.size(); ++i) {
72 bool ok = true;
73 buffers[i].visit(0, buffers[i].size(), [&](const uint8_t* p, size_t n, size_t) {
74 for (size_t k = 0; k < n; k += 997) ok = ok && p[k] == uint8_t(tag + i);
75 return ok;
76 });
77 if (!ok) return false;
78 }
79 return true;
80 }
81};
82}
83

Callers 1

mainFunction · 0.80

Calls 2

visitMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected