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

Method TImpl

util/system/filemap.cpp:164–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162 }
163
164 inline TImpl(FILE* f, EOpenMode om, TString dbgName)
165 : File_(Duplicate(f))
166 , DbgName_(std::move(dbgName))
167 , Length_(File_.GetLength())
168 , Mode_(om)
169 {
170 CheckFile();
171 CreateMapping();
172 }
173
174 inline TImpl(const TString& name, EOpenMode om)
175 : File_(name, (om & oRdWr) ? OpenExisting | RdWr : OpenExisting | RdOnly)

Callers

nothing calls this directly

Calls 6

DuplicateFunction · 0.85
CreateMappingFunction · 0.85
moveFunction · 0.50
GetLengthMethod · 0.45
ResizeMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected