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

Method CreateSimpleDataspace

IO/HDF/vtkHDFWriterImplementation.cxx:293–308  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

291
292//------------------------------------------------------------------------------
293vtkHDF::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//------------------------------------------------------------------------------
311vtkHDF::ScopedH5AHandle vtkHDFWriter::Implementation::CreateScalarAttribute(

Callers 2

CreateHdfDatasetMethod · 0.95

Calls 1

H5Sset_extent_simpleFunction · 0.85

Tested by

no test coverage detected