MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / setPosition

Method setPosition

Engine/source/platformWin32/winVolume.cpp:469–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467}
468
469U32 Win32File::setPosition(U32 delta, SeekMode mode)
470{
471 if (mStatus != Open && mStatus != EndOfFile)
472 return 0;
473
474 DWORD fmode;
475 switch (mode)
476 {
477 case Begin: fmode = FILE_BEGIN; break;
478 case Current: fmode = FILE_CURRENT; break;
479 case End: fmode = FILE_END; break;
480 default: fmode = 0; break;
481 }
482
483 DWORD pos = ::SetFilePointer((HANDLE)mHandle,delta,0,fmode);
484 if (pos == INVALID_SET_FILE_POINTER)
485 {
486 mStatus = UnknownError;
487 return 0;
488 }
489
490 mStatus = Open;
491
492 return pos;
493}
494
495U32 Win32File::read(void* dst, U32 size)
496{

Callers 15

showPopupMethod · 0.45
openMethod · 0.45
_getContentControlMethod · 0.45
_setupConstantsMethod · 0.45
logAllocFunction · 0.45
logReallocFunction · 0.45
logFreeFunction · 0.45
convertHandRotationFunction · 0.45
convertPointableRotationFunction · 0.45
convertRotationFunction · 0.45
convertRotationFunction · 0.45
getTrackedTransformMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected