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

Method buffer

engine/src/core/conversation_file.cpp:753–760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

751 return raw(v.data(), (size_t) n * sizeof(T));
752 }
753 bool buffer(ConversationBuffer& b, size_t part) {
754 uint64_t n = 0;
755 const uint64_t limit = kv_layer < limits.max_kv_bytes.size() ? limits.max_kv_bytes[kv_layer][part] : UINT64_MAX;
756 if (!count(n, 1, limit)) return false;
757 b = {};
758 b.resize((size_t) n);
759 return b.visit(0, b.size(), [&](uint8_t* p, size_t c, size_t) { return raw(p, c); });
760 }
761};
762
763bool get_checkpoint(In& in, ConversationCheckpoint& c) {

Callers 3

put_payloadFunction · 0.45
get_payloadFunction · 0.45
append_headsMethod · 0.45

Calls 5

visitMethod · 0.80
countFunction · 0.50
rawFunction · 0.50
sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected