MCPcopy Create free account
hub / github.com/Kitware/VTK / Filesize

Method Filesize

IO/Engys/vtkBTSReader.cxx:220–234  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

218
219//------------------------------------------------------------------------------
220long 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//------------------------------------------------------------------------------
237void vtkBTSReader::InitReadProgress(unsigned long fileSize)

Callers 1

ReadMethod · 0.95

Calls 4

SupportSeekMethod · 0.80
maxFunction · 0.50
TellMethod · 0.45
SeekMethod · 0.45

Tested by

no test coverage detected