| 493 | } |
| 494 | |
| 495 | U32 Win32File::read(void* dst, U32 size) |
| 496 | { |
| 497 | if (mStatus != Open && mStatus != EndOfFile) |
| 498 | return 0; |
| 499 | |
| 500 | DWORD bytesRead; |
| 501 | if (!::ReadFile((HANDLE)mHandle,dst,size,&bytesRead,0)) |
| 502 | _updateStatus(); |
| 503 | else if (bytesRead != size) |
| 504 | mStatus = EndOfFile; |
| 505 | |
| 506 | return bytesRead; |
| 507 | } |
| 508 | |
| 509 | U32 Win32File::write(const void* src, U32 size) |
| 510 | { |
nothing calls this directly
no test coverage detected