| 35 | } |
| 36 | |
| 37 | bool Win32File::Read(void* buffer, uint32 bytesToRead, uint32* bytesRead) |
| 38 | { |
| 39 | // Try to read data |
| 40 | DWORD tmp; |
| 41 | if (ReadFile(_handle, buffer, bytesToRead, &tmp, nullptr)) |
| 42 | { |
| 43 | if (bytesRead) |
| 44 | *bytesRead = tmp; |
| 45 | return false; |
| 46 | } |
| 47 | |
| 48 | if (bytesRead) |
| 49 | *bytesRead = 0; |
| 50 | return true; |
| 51 | } |
| 52 | |
| 53 | bool Win32File::Write(const void* buffer, uint32 bytesToWrite, uint32* bytesWritten) |
| 54 | { |
nothing calls this directly
no test coverage detected