| 255 | { |
| 256 | } |
| 257 | void UnpackLeaf(const char* p, TVectorType& t) const { |
| 258 | const typename TVectorType::value_type* beg = reinterpret_cast<const typename TVectorType::value_type*>(p); |
| 259 | t.assign(beg, beg + ArraySize); |
| 260 | } |
| 261 | void PackLeaf(char* buffer, const TVectorType& data, size_t computedSize) const { |
| 262 | Y_ASSERT(computedSize == SizeOfValue && data.size() == ArraySize); |
| 263 | memcpy(buffer, data.data(), computedSize); |