MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / getSizeOfFile

Method getSizeOfFile

src/thundersvm/util/log.cpp:674–683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

672 }
673
674 std::size_t File::getSizeOfFile(base::type::fstream_t* fs) {
675 if (fs == nullptr) {
676 return 0;
677 }
678 std::streampos currPos = fs->tellg();
679 fs->seekg(0, fs->end);
680 std::size_t size = static_cast<std::size_t>(fs->tellg());
681 fs->seekg(currPos);
682 return size;
683 }
684
685 bool File::pathExists(const char* path, bool considerFile) {
686 if (path == nullptr) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected