| 214 | namespace NPrivate { |
| 215 | template <class T> |
| 216 | static inline void Deserialize(TPacketInput* in, T& t) { |
| 217 | char type; |
| 218 | Load(in, type); |
| 219 | |
| 220 | if (type != t.Type()) { |
| 221 | ythrow yexception() << "unsupported packet"; |
| 222 | } |
| 223 | |
| 224 | t.Deserialize(in); |
| 225 | } |
| 226 | |
| 227 | template <class T> |
| 228 | static inline void Deserialize(const TPacket& p, T& t) { |
no test coverage detected