| 97 | } |
| 98 | |
| 99 | uint32_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 | |
| 110 | uint32_t StructuredFile::GetSize() const { |
| 111 | STATSTG stat = { 0 }; |
nothing calls this directly
no test coverage detected