H5Tcreate H5T_CREATE creates a new datatype of the specified class with the specified number of bytes. This function is used only with the following datatype classes:
H5T_COMPOUND H5T_OPAQUE H5T_ENUM H5T_STRING
Other datatypes, including integer and floating-point datatypes, are typically created by using H5Tcopy to copy and modify a predefined datatype. When creating a variable-length string datatype, size must be H5T_VARIABLE ; see “ Creating variable-length string datatypes.” When creating a fixed-length string datatype, size will be the length of the string in bytes. The length of the string in characters will depend on the encoding used; see H5PsetH5P_char_encodingSET_CHAR_ENCODING . ENUMs created with this function have a signed native integer base datatype. Use H5Tenum_create H5T_ENUM_CREATE if a different integer base datatype is required. The datatype identifier returned from this function should be released with H5T_CLOSE H5Tclose or resource leaks will result. |