| 352 | |
| 353 | template <class TCounter> |
| 354 | static inline TBlob ConstructFromBuffer(TBuffer& in) { |
| 355 | using TBase = TBufferBlobBase<TCounter>; |
| 356 | THolder<TBase> base(new TBase(in)); |
| 357 | |
| 358 | TBlob ret(base->Buffer().Data(), base->Buffer().Size(), base.Get()); |
| 359 | Y_UNUSED(base.Release()); |
| 360 | |
| 361 | return ret; |
| 362 | } |
| 363 | |
| 364 | template <class TCounter> |
| 365 | static inline TBlob ConstructFromStream(IInputStream& in) { |