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

Method setPosition

Engine/source/platformWin32/winVolume.cpp:478–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476}
477
478U32 Win32File::setPosition(U32 delta, SeekMode mode)
479{
480 if (mStatus != Open && mStatus != EndOfFile)
481 return 0;
482
483 DWORD fmode;
484 switch (mode)
485 {
486 case Begin: fmode = FILE_BEGIN; break;
487 case Current: fmode = FILE_CURRENT; break;
488 case End: fmode = FILE_END; break;
489 default: fmode = 0; break;
490 }
491
492 DWORD pos = ::SetFilePointer((HANDLE)mHandle,delta,0,fmode);
493 if (pos == INVALID_SET_FILE_POINTER)
494 {
495 mStatus = UnknownError;
496 return 0;
497 }
498
499 mStatus = Open;
500
501 return pos;
502}
503
504U32 Win32File::read(void* dst, U32 size)
505{

Callers 15

openMethod · 0.45
_getContentControlMethod · 0.45
_setupConstantsMethod · 0.45
logAllocFunction · 0.45
logReallocFunction · 0.45
logFreeFunction · 0.45
_requestNextMethod · 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