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

Method ResetFile

IO/EnSight/core/EnSightFile.cxx:370–382  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

368
369//------------------------------------------------------------------------------
370void EnSightFile::ResetFile()
371{
372 std::streampos pos = 0;
373 if (this->Format == FileType::CBinary)
374 {
375 pos = this->HasBinaryHeader ? MAX_LINE_LENGTH : 0;
376 }
377 else if (this->Format == FileType::FBinary)
378 {
379 pos = this->HasBinaryHeader ? MAX_LINE_LENGTH + this->FortranSkipBytes * 2 : 0;
380 }
381 this->MoveToPosition(pos);
382}
383
384//------------------------------------------------------------------------------
385bool EnSightFile::OpenFile(bool isCaseFile /* = false*/)

Callers 3

SetTimeStepToReadMethod · 0.95
OpenFileMethod · 0.95

Calls 1

MoveToPositionMethod · 0.95

Tested by

no test coverage detected