Skip Navigation Links.

H5T..::..insert Method (H5DataTypeId, , , H5T..::..H5Type)

H5Tinsert adds another member to the compound datatype type_id. The new member has a name which must be unique within the compound datatype. The offset argument defines the start of the member in an instance of the compound datatype, and field_id is the datatype identifier of the new member. http://www.hdfgroup.org/HDF5/doc/RM/RM_H5T.html#Datatype-Insert

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

Syntax

Visual Basic
Public Shared Sub insert ( _
	compoundDataType As H5DataTypeId, _
	fieldName As String, _
	offset As Integer, _
	fieldId As H5T..::..H5Type _
)
C#
public static void insert(
	H5DataTypeId compoundDataType,
	string fieldName,
	int offset,
	H5T..::..H5Type fieldId
)
Visual C++
public:
static void insert(
	H5DataTypeId^ compoundDataType, 
	String^ fieldName, 
	int offset, 
	H5T..::..H5Type fieldId
)
JavaScript
HDF5DotNet.H5T.insert = function(compoundDataType, fieldName, offset, fieldId);

Parameters

compoundDataType
Type: HDF5DotNet..::..H5DataTypeId
Identifier of compound data type to modify.
fieldName
Type: String
Name of the field to insert.
offset
Type: Int32
Offset in memory structure of the field to insert.
fieldId
Type: HDF5DotNet..::..H5T..::..H5Type
Datatype identifier of the field to insert.

Remarks

Members of a compound datatype do not have to be atomic datatypes; a compound datatype can have a member which is a compound datatype.

Exceptions

ExceptionCondition
HDF5DotNet..::..H5TinsertException throws H5TinsertException on failure.

See Also