------------------------------------------------------------------------------
| 93 | |
| 94 | //------------------------------------------------------------------------------ |
| 95 | int vtkAMRFlashReader::GetBlockLevel(int blockIdx) |
| 96 | { |
| 97 | assert("pre: Internal Flash Reader is nullptr" && (this->Internal != nullptr)); |
| 98 | if (!this->IsReady) |
| 99 | { |
| 100 | return (-1); |
| 101 | } |
| 102 | |
| 103 | this->Internal->ReadMetaData(); |
| 104 | if (blockIdx < 0 || blockIdx >= this->Internal->NumberOfBlocks) |
| 105 | { |
| 106 | vtkErrorMacro("Block Index (" << blockIdx << ") is out-of-bounds!"); |
| 107 | return (-1); |
| 108 | } |
| 109 | return (this->Internal->Blocks[blockIdx].Level - 1); |
| 110 | } |
| 111 | |
| 112 | //------------------------------------------------------------------------------ |
| 113 | int vtkAMRFlashReader::GetNumberOfBlocks() |
nothing calls this directly
no test coverage detected