MCPcopy Create free account
hub / github.com/catboost/catboost / ConstructFromBuffer

Function ConstructFromBuffer

util/memory/blob.cpp:354–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352
353template <class TCounter>
354static 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
364template <class TCounter>
365static inline TBlob ConstructFromStream(IInputStream& in) {

Callers

nothing calls this directly

Calls 5

Y_UNUSEDFunction · 0.85
DataMethod · 0.45
SizeMethod · 0.45
GetMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected