| 198 | |
| 199 | template <class TCounter> |
| 200 | static inline TBlob ConstructFromMap(const TMemoryMap& map, ui64 offset, size_t length, EMappingMode mode) { |
| 201 | using TBase = TMappedBlobBase<TCounter>; |
| 202 | THolder<TBase> base(new TBase(map, offset, length, mode)); |
| 203 | TBlob ret(base->Data(), base->Length(), base.Get()); |
| 204 | Y_UNUSED(base.Release()); |
| 205 | |
| 206 | return ret; |
| 207 | } |
| 208 | |
| 209 | template <class TCounter, class T> |
| 210 | static inline TBlob ConstructAsMap(const T& t, EMappingMode mode) { |