| 110 | } |
| 111 | |
| 112 | void FileData::Read(uint64_t pos, void * p, size_t size) |
| 113 | { |
| 114 | if (fseek64(m_File, static_cast<off_t>(pos), SEEK_SET)) |
| 115 | MYTHROW(Reader::ReadException, (GetErrorProlog(), pos)); |
| 116 | |
| 117 | size_t const bytesRead = fread(p, 1, size, m_File); |
| 118 | if (bytesRead != size || ferror(m_File)) |
| 119 | MYTHROW(Reader::ReadException, (GetErrorProlog(), bytesRead, pos, size)); |
| 120 | } |
| 121 | |
| 122 | uint64_t FileData::Pos() const |
| 123 | { |
no outgoing calls
no test coverage detected