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

Method FromFileContent

util/memory/blob.cpp:332–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332TBlob TBlob::FromFileContent(const TString& path) {
333 TFile file(path, RdOnly);
334 return ConstructFromFileContent<TAtomicCounter>(file, 0, file.GetLength());
335}
336
337TBlob TBlob::FromFileContentSingleThreaded(const TFile& file) {
338 return ConstructFromFileContent<TSimpleCounter>(file, 0, file.GetLength());

Callers

nothing calls this directly

Calls 1

GetLengthMethod · 0.45

Tested by

no test coverage detected