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

Method buffer

engine/src/core/conversation_file.cpp:647–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645 void i64(int64_t v) { raw(&v, 8); }
646 template<class T> void vec(const std::vector<T>& v) { u64(v.size()); raw(v.data(), v.size() * sizeof(T)); }
647 void buffer(const ConversationBuffer& b) {
648 u64(b.size());
649 b.visit(0, b.size(), [&](const uint8_t* p, size_t c, size_t) { raw(p, c); return ok; });
650 }
651 // a K/V part pulled from its owner straight into the file block (sizing pass: counted, never read)
652 void source(const SessionKvSource& s, size_t part) {
653 const size_t size = s.sizes[part];

Callers

nothing calls this directly

Calls 4

visitMethod · 0.80
u64Function · 0.50
rawFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected