MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / GetFileSize

Function GetFileSize

src/openrct2/platform/Platform.Posix.cpp:245–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243 }
244
245 uint64_t GetFileSize(std::string_view path)
246 {
247 uint64_t size = 0;
248 struct stat statInfo{};
249 if (stat(std::string(path).c_str(), &statInfo) == 0)
250 {
251 size = statInfo.st_size;
252 }
253 return size;
254 }
255 #endif
256
257 bool ShouldIgnoreCase()

Callers 3

GetFileDataMethod · 0.50
GetSizeFunction · 0.50
PopulateListMethod · 0.50

Calls 1

statClass · 0.70

Tested by

no test coverage detected