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

Method SetPointer

sourcecommon/File.cpp:123–136  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

121}
122//---------------------------------------------------------------------------
123bool __fastcall TFile::SetPointer(LONG Dist, DWORD MoveMethod)
124{
125 if( ! handle )
126 {
127 Error = true;
128 if( Exceptions && Error ) throw 0;
129 return false;
130 }
131 LastError = 0;
132 Error = SetFilePointer(handle, Dist, NULL, MoveMethod) == INVALID_SET_FILE_POINTER;
133 if( Error ) LastError = GetLastError();
134 if( Exceptions && Error ) throw 0;
135 return ! Error;
136}
137//---------------------------------------------------------------------------
138bool __fastcall TFile::SetPointer(LONG Dist)
139{

Callers 2

WriteToLogTimeFunction · 0.80
WriteToLogFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected