H5Tget_size H5T_GET_SIZE returns the size of a datatype in bytes.
For atomic datatypes, array datatypes, compound datatypes, and other datatypes of a constant size, the returned value is the size of the actual datatype in bytes. For variable-length string datatypes (see “Creating variable-length string datatypes”), the returned value is the size of the pointer to the actual string, or sizeof(char *) . This function does not return the size of actual variable-length string data. For variable-length sequence datatypes (see H5Tvlen_create H5T_VLEN_CREATE), the returned value is the size of the hvl_t struct, or sizeof(hvl_t) . The hvl_t struct contains a pointer to the actual data and a size value. This function does not return the size of actual variable-length sequence data. |