| 32 | |
| 33 | template <class T> |
| 34 | inline void SerializeFromStream(IInputStream& stream, T& c) { |
| 35 | TYaStreamInput f(stream); |
| 36 | { |
| 37 | IBinSaver bs(f, true); |
| 38 | bs.Add(1, &c); |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | template <class T> |
| 43 | inline void SerializeFromFile(const TString& fileName, T& c) { |