| 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]; |