MCPcopy Create free account
hub / github.com/Kitware/VTK / seek

Method seek

ThirdParty/libproj/vtklibproj/src/filemanager.cpp:644–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642// ---------------------------------------------------------------------------
643
644bool FileWin32::seek(unsigned long long offset, int whence) {
645 LONG dwMoveMethod, dwMoveHigh;
646 uint32_t nMoveLow;
647 LARGE_INTEGER li;
648
649 switch (whence) {
650 case SEEK_CUR:
651 dwMoveMethod = FILE_CURRENT;
652 break;
653 case SEEK_END:
654 dwMoveMethod = FILE_END;
655 break;
656 case SEEK_SET:
657 default:
658 dwMoveMethod = FILE_BEGIN;
659 break;
660 }
661
662 li.QuadPart = offset;
663 nMoveLow = li.LowPart;
664 dwMoveHigh = li.HighPart;
665
666 SetLastError(0);
667 SetFilePointer(m_handle, nMoveLow, &dwMoveHigh, dwMoveMethod);
668
669 return GetLastError() == NO_ERROR;
670}
671
672// ---------------------------------------------------------------------------
673

Callers 9

zipCompressionFunction · 0.45
valueAtMethod · 0.45
tiffSeekProcMethod · 0.45
tiffSizeProcMethod · 0.45
openMethod · 0.45
pj_load_iniFunction · 0.45
defmodel.cppFile · 0.45
tinshift.cppFile · 0.45
ncstdio_seekFunction · 0.45

Calls 1

pj_logFunction · 0.85

Tested by

no test coverage detected