MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / Seek

Method Seek

Utils/CompoundFile.cpp:99–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99uint32_t StructuredFile::Seek(uint32_t offset, SeekMode mode) {
100 LARGE_INTEGER li;
101 li.QuadPart = offset;
102 ULARGE_INTEGER newOffset;
103 auto hr = m_spStream->Seek(li, static_cast<DWORD>(mode), &newOffset);
104 if (FAILED(hr))
105 throw ComException(hr);
106
107 return newOffset.LowPart;
108}
109
110uint32_t StructuredFile::GetSize() const {
111 STATSTG stat = { 0 };

Callers

nothing calls this directly

Calls 1

ComExceptionClass · 0.85

Tested by

no test coverage detected