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

Method vec

engine/src/core/conversation_file.cpp:747–752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

745 return true;
746 }
747 template<class T> bool vec(std::vector<T>& v, uint64_t limit = UINT64_MAX) {
748 uint64_t n = 0;
749 if (!count(n, sizeof(T), limit)) return false;
750 v.resize((size_t) n);
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;

Callers 2

put_checkpointFunction · 0.45
get_checkpointFunction · 0.45

Calls 4

countFunction · 0.50
rawFunction · 0.50
resizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected