| 249 | } |
| 250 | |
| 251 | static 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 | |
| 261 | static bool ioWindowsFsMemoryMap(FileStream* fs, size_t* outSize, void const** outData) |
| 262 | { |
no test coverage detected