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

Method Write

sourcecommon/File.cpp:81–95  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

79}
80//---------------------------------------------------------------------------
81bool __fastcall TFile::Write(BYTE * data, DWORD size)
82{
83 bytes = 0;
84 if( ! handle || !data )
85 {
86 Error = true;
87 if( Exceptions && Error ) throw 0;
88 return false;
89 }
90 LastError = 0;
91 Error = ! (WriteFile(handle, data, size, &bytes, NULL) && bytes == size);
92 if( Error ) LastError = GetLastError();
93 if( Exceptions && Error ) throw 0;
94 return ! Error;
95}
96//---------------------------------------------------------------------------
97bool __fastcall TFile::Read(BYTE * data, DWORD size)
98{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected