| 434 | } |
| 435 | |
| 436 | static bool getFileSize(MMKVFileHandle_t fd, size_t &size) { |
| 437 | LARGE_INTEGER filesize = {0}; |
| 438 | if (GetFileSizeEx(fd, &filesize)) { |
| 439 | size = static_cast<size_t>(filesize.QuadPart); |
| 440 | return true; |
| 441 | } |
| 442 | return false; |
| 443 | } |
| 444 | |
| 445 | bool getFileSize(const wchar_t *filename, size_t &size) { |
| 446 | WIN32_FILE_ATTRIBUTE_DATA fileAttr = {}; |
no outgoing calls
no test coverage detected