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

Method GetLength

util/system/file.cpp:382–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382i64 TFileHandle::GetLength() const noexcept {
383 // XXX: returns error code, but does not set errno
384 if (!IsOpen()) {
385 return -1L;
386 }
387 return GetFileLength(Fd_);
388}
389
390bool TFileHandle::Resize(i64 length) noexcept {
391 if (!IsOpen()) {

Callers 15

FinishMethod · 0.45
TransformMethod · 0.45
StringPointerHolderMethod · 0.45
EvaluateBatchMethod · 0.45
RunIrisTestMethod · 0.45
RunMushroomTestMethod · 0.45
FromFileContentMethod · 0.45
RunRenameTestFunction · 0.45
RunHardlinkTestFunction · 0.45
RunSymLinkTestFunction · 0.45
Y_UNIT_TESTFunction · 0.45

Calls 2

GetFileLengthFunction · 0.85
GetHandleMethod · 0.45

Tested by 6

RunIrisTestMethod · 0.36
RunMushroomTestMethod · 0.36
TestResizeMethod · 0.36
TestOpenMethod · 0.36
TestRWMethod · 0.36
TestLocaleMethod · 0.36