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

Method CalculateFileSize

IO/Parallel/vtkMultiBlockPLOT3DReader.cxx:3009–3015  ·  view source on GitHub ↗

Read a block of floats (ascii or binary) and return number read.

Source from the content-addressed store, hash-verified

3007
3008// Read a block of floats (ascii or binary) and return number read.
3009void vtkMultiBlockPLOT3DReader::CalculateFileSize(FILE* fp)
3010{
3011 vtk_off_t curPos = vtk_ftell(fp);
3012 vtk_fseek(fp, 0, SEEK_END);
3013 this->FileSize = static_cast<size_t>(vtk_ftell(fp));
3014 vtk_fseek(fp, curPos, SEEK_SET);
3015}
3016
3017int vtkMultiBlockPLOT3DReader::CanReadBinaryFile(const char* fname)
3018{

Callers 2

GetTimeValueMethod · 0.95
CanReadBinaryFileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected