| 502 | } |
| 503 | |
| 504 | U32 Win32File::read(void* dst, U32 size) |
| 505 | { |
| 506 | if (mStatus != Open && mStatus != EndOfFile) |
| 507 | return 0; |
| 508 | |
| 509 | DWORD bytesRead; |
| 510 | if (!::ReadFile((HANDLE)mHandle,dst,size,&bytesRead,0)) |
| 511 | _updateStatus(); |
| 512 | else if (bytesRead != size) |
| 513 | mStatus = EndOfFile; |
| 514 | |
| 515 | return bytesRead; |
| 516 | } |
| 517 | |
| 518 | U32 Win32File::write(const void* src, U32 size) |
| 519 | { |
nothing calls this directly
no test coverage detected