| 61 | |
| 62 | template <typename Stream> |
| 63 | void Serialize(Stream& s) const |
| 64 | { |
| 65 | // Use vector serialization for convenient compact size prefix. |
| 66 | std::vector<std::byte> bytes{KEY_SIZE}; |
| 67 | std::memcpy(bytes.data(), &m_rotations[0], KEY_SIZE); |
| 68 | s << bytes; |
| 69 | } |
| 70 | |
| 71 | template <typename Stream> |
| 72 | void Unserialize(Stream& s) |