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

Method SetPointer64

sourcecommon/File.cpp:170–186  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

168}
169//---------------------------------------------------------------------------
170bool __fastcall TFile::SetPointer64(LONGLONG Dist, DWORD MoveMethod)
171{
172 if( ! handle )
173 {
174 Error = true;
175 if( Exceptions && Error ) throw 0;
176 return false;
177 }
178 LastError = 0;
179 LARGE_INTEGER li;
180 li.QuadPart = Dist;
181 DWORD dw = SetFilePointer(handle, li.LowPart, &li.HighPart, MoveMethod);
182 Error = dw == INVALID_SET_FILE_POINTER && GetLastError() != NO_ERROR;
183 if( Error ) LastError = GetLastError();
184 if( Exceptions && Error ) throw 0;
185 return ! Error;
186}
187//---------------------------------------------------------------------------
188bool __fastcall TFile::SetPointer64(LONGLONG Dist)
189{

Callers 1

ReadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected