| 155 | } |
| 156 | |
| 157 | size_t WinFileSystem::Size(HANDLE handle) |
| 158 | { |
| 159 | LARGE_INTEGER output{}; |
| 160 | |
| 161 | if (!GetFileSizeEx(handle, &output)) |
| 162 | { |
| 163 | LastErrorCode = 0x505007; |
| 164 | return 0; |
| 165 | } |
| 166 | |
| 167 | return output.QuadPart; |
| 168 | } |
| 169 | |
| 170 | size_t WinFileSystem::EnumerateFiles(const std::string& pattern, std::function<void(const std::string&, const size_t)> onFileFound) |
| 171 | { |
no outgoing calls
no test coverage detected