MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / Read

Method Read

sourcecommon/File.cpp:97–111  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

95}
96//---------------------------------------------------------------------------
97bool __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//---------------------------------------------------------------------------
113bool __fastcall TFile::Flush(void)
114{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected