---------------------------------------------------------------------------
| 95 | } |
| 96 | //--------------------------------------------------------------------------- |
| 97 | bool __fastcall TFile::Read(BYTE * data, DWORD size) |
| 98 | { |
| 99 | bytes = 0; |
| 100 | if( ! handle || !data ) |
| 101 | { |
| 102 | Error = true; |
| 103 | if( Exceptions && Error ) throw 0; |
| 104 | return false; |
| 105 | } |
| 106 | LastError = 0; |
| 107 | Error = ! (ReadFile(handle, data, size, &bytes, NULL) && bytes == size); |
| 108 | if( Error ) LastError = GetLastError(); |
| 109 | if( Exceptions && Error ) throw 0; |
| 110 | return ! Error; |
| 111 | } |
| 112 | //--------------------------------------------------------------------------- |
| 113 | bool __fastcall TFile::Flush(void) |
| 114 | { |
nothing calls this directly
no outgoing calls
no test coverage detected