| 1635 | at += sizeof v; |
| 1636 | } |
| 1637 | template <typename T> void put_vec(const std::vector<T>& v) { |
| 1638 | put((uint64_t) v.size()); |
| 1639 | s.append((const char*) v.data(), v.size() * sizeof(T)); |
| 1640 | } |
| 1641 | template <typename T> void get_vec(std::vector<T>& v) { |
| 1642 | uint64_t n = 0; |
| 1643 | get(n); |