Skip Navigation Links.

H5S..::..create_simple Method (, array<>[]()[][], array<>[]()[][])

Creates a new simple dataspace and opens it for access. http://www.hdfgroup.org/HDF5/doc/RM/RM_H5S.html#Dataspace-CreateSimple

Namespace:  HDF5DotNet
Assembly:  HDF5DotNet (in HDF5DotNet.dll)

Syntax

Visual Basic
Public Shared Function create_simple ( _
	rank As Integer, _
	dims As Long(), _
	maxDims As Long() _
) As H5DataSpaceId
C#
public static H5DataSpaceId create_simple(
	int rank,
	long[] dims,
	long[] maxDims
)
Visual C++
public:
static H5DataSpaceId^ create_simple(
	int rank, 
	array<long long>^ dims, 
	array<long long>^ maxDims
)
JavaScript
HDF5DotNet.H5S.create_simple = function(rank, dims, maxDims);

Parameters

rank
Type: Int32
Number of dimensions of dataspace.
dims
Type: array<Int64>[]()[][]
An array of the size of each dimension.
maxDims
Type: array<Int64>[]()[][]
An array of the maximum size of each dimension.

Remarks

H5Screate_simple creates a new simple dataspace and opens it for access.

rank is the number of dimensions used in the dataspace.

dims is an array specifying the size of each dimension of the dataset while maxdims is an array specifying the upper limit on the size of each dimension. maxdims may be the null pointer, in which case the upper limit is the same as dims.

If an element of maxdims is H5S_UNLIMITED, (-1), the maximum size of the corresponding dimension is unlimited. Otherwise, no element of maxdims should be smaller than the corresponding element of dims.

The dataspace identifier returned from this function must be released with H5Sclose or resource leaks will occur.

See Also