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

Function ConstructFromMap

util/memory/blob.cpp:200–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198
199template <class TCounter>
200static 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
209template <class TCounter, class T>
210static inline TBlob ConstructAsMap(const T& t, EMappingMode mode) {

Callers

nothing calls this directly

Calls 5

Y_UNUSEDFunction · 0.85
DataMethod · 0.45
LengthMethod · 0.45
GetMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected