| 164 | } |
| 165 | |
| 166 | lword FileStore::Skip(lword skipMax) |
| 167 | { |
| 168 | if (!m_stream) |
| 169 | return 0; |
| 170 | |
| 171 | lword oldPos = m_stream->tellg(); |
| 172 | std::istream::off_type offset; |
| 173 | if (!SafeConvert(skipMax, offset)) |
| 174 | throw InvalidArgument("FileStore: maximum seek offset exceeded"); |
| 175 | m_stream->seekg(offset, std::ios::cur); |
| 176 | return (lword)m_stream->tellg() - oldPos; |
| 177 | } |
| 178 | |
| 179 | void FileSink::IsolatedInitialize(const NameValuePairs ¶meters) |
| 180 | { |
no test coverage detected