MCPcopy Create free account
hub / github.com/ConfettiFX/The-Forge / ioWindowsFsGetSize

Function ioWindowsFsGetSize

Common_3/OS/Windows/WindowsFileSystem.cpp:251–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251static ssize_t ioWindowsFsGetSize(FileStream* fs)
252{
253 WSD(stream, fs);
254 LARGE_INTEGER fileSize = {};
255 if (GetFileSizeEx(stream->handle, &fileSize))
256 return (ssize_t)fileSize.QuadPart;
257 LOGF(eERROR, "Failed to get file size: %s", WindowsErrorString().c_str());
258 return -1;
259}
260
261static bool ioWindowsFsMemoryMap(FileStream* fs, size_t* outSize, void const** outData)
262{

Callers 1

ioWindowsFsMemoryMapFunction · 0.85

Calls 2

WindowsErrorStringClass · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected