------------------------------------------------------------------------------
| 291 | |
| 292 | //------------------------------------------------------------------------------ |
| 293 | vtkHDF::ScopedH5SHandle vtkHDFWriter::Implementation::CreateSimpleDataspace( |
| 294 | int rank, const hsize_t dimensions[]) |
| 295 | { |
| 296 | vtkHDF::ScopedH5SHandle dataspace{ H5Screate(H5S_SIMPLE) }; |
| 297 | if (dataspace == H5I_INVALID_HID) |
| 298 | { |
| 299 | return H5I_INVALID_HID; |
| 300 | } |
| 301 | |
| 302 | auto res = H5Sset_extent_simple(dataspace, rank, dimensions, dimensions); |
| 303 | if (res < 0) |
| 304 | { |
| 305 | return H5I_INVALID_HID; |
| 306 | } |
| 307 | return dataspace; |
| 308 | } |
| 309 | |
| 310 | //------------------------------------------------------------------------------ |
| 311 | vtkHDF::ScopedH5AHandle vtkHDFWriter::Implementation::CreateScalarAttribute( |
no test coverage detected