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

Function OpenOutput

tools/archiver/main.cpp:293–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293static inline TAutoPtr<IOutputStream> OpenOutput(const TString& url) {
294 if (url.empty()) {
295 return new TBuffered<TUnbufferedFileOutput>(8192, Duplicate(1));
296 } else {
297 return new TBuffered<TUnbufferedFileOutput>(8192, url);
298 }
299}
300
301static inline bool IsDelim(char ch) noexcept {
302 return ch == '/' || ch == '\\';

Callers 1

mainFunction · 0.70

Calls 2

DuplicateFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected