MCPcopy Create free account
hub / github.com/Tencent/MMKV / getFileSize

Function getFileSize

Core/MemoryFile_Win32.cpp:436–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434}
435
436static 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
445bool getFileSize(const wchar_t *filename, size_t &size) {
446 WIN32_FILE_ATTRIBUTE_DATA fileAttr = {};

Callers 4

getActualFileSizeMethod · 0.70
reloadFromFileMethod · 0.70
readWholeFileFunction · 0.70
copyFileContentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected