Skip Navigation Links.

H5T..::..create Method

H5T.create creates a new data type of the specified class with the specified number of bytes. http://www.hdfgroup.org/HDF5/doc/RM/RM_H5T.html#Datatype-Create

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

Syntax

Visual Basic
Public Shared Function create ( _
	createClass As H5T..::..CreateClass, _
	size As Integer _
) As H5DataTypeId
C#
public static H5DataTypeId create(
	H5T..::..CreateClass createClass,
	int size
)
Visual C++
public:
static H5DataTypeId^ create(
	H5T..::..CreateClass createClass, 
	int size
)
JavaScript
HDF5DotNet.H5T.create = function(createClass, size);

Parameters

createClass
Type: HDF5DotNet..::..H5T..::..CreateClass
Available create classes include COMPOUND, OPAQUE, ENUM, and STRING.
size
Type: Int32
Number of bytes in the created data type. To create a variable-length string type specify a negative size.

Return Value

a vaild H5DataTypeId for the created data type

Remarks

Use H5Tcopy to create integer or floating point data types.

Exceptions

ExceptionCondition
HDF5DotNet..::..H5TopenException throws H5TopenException when open fails

See Also