------------------------------------------------------------------------------
| 218 | |
| 219 | //------------------------------------------------------------------------------ |
| 220 | long vtkBTSReader::Filesize() |
| 221 | { |
| 222 | if (Stream->SupportSeek()) |
| 223 | { |
| 224 | long prevPosition = Stream->Tell(); |
| 225 | this->Stream->Seek(0, vtkResourceStream::SeekDirection::End); |
| 226 | long endPosition = Stream->Tell(); |
| 227 | this->Stream->Seek(prevPosition, vtkResourceStream::SeekDirection::Begin); |
| 228 | return endPosition; |
| 229 | } |
| 230 | else |
| 231 | { |
| 232 | return std::numeric_limits<long>::max(); |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | //------------------------------------------------------------------------------ |
| 237 | void vtkBTSReader::InitReadProgress(unsigned long fileSize) |
no test coverage detected