Documentation Center

  • Trial Software
  • Product Updates

H5T.insert

Add member to compound data type

Syntax

H5T.insert(type_id,name,offset,member_datatype)

Description

H5T.insert(type_id,name,offset,member_datatype) adds another member to the compound data type specified by type_id. The name argument is a text string that specifies the name of the new member, which must be unique in the compound data type. offset specifies where you want to insert the new member and member_datatype specifies the data type identifier of the new member.

Examples

type_id = H5T.create('H5T_COMPOUND',16);
H5T.insert(type_id,'first',0,'H5T_NATIVE_DOUBLE');
H5T.insert(type_id,'second',8,'H5T_NATIVE_INT');
H5T.insert(type_id,'third',12,'H5T_NATIVE_UINT');

See Also

Was this topic helpful?