| 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) { |
nothing calls this directly
no outgoing calls
no test coverage detected