| 951 | |
| 952 | template <class TSharedDataPtr> |
| 953 | inline void AddToCacheAndSaveId( |
| 954 | const TSharedDataPtr sharedData, |
| 955 | IBinSaver* binSaver, |
| 956 | TSerializationTargetSingleTypeDataCache<TSharedDataPtr>* cache |
| 957 | ) { |
| 958 | const ui64 id = reinterpret_cast<ui64>(sharedData.Get()); |
| 959 | SaveMulti(binSaver, id); |
| 960 | if (id) { |
| 961 | cache->emplace(id, sharedData); |
| 962 | } |
| 963 | } |
| 964 | |
| 965 | template <class TSharedDataPtr> |
| 966 | static void SaveWithCache( |
no test coverage detected