Last modified: 25 May 2016

Name: H5LDget_dset_type_size

Signature:
size_t H5LDget_dset_type_size( hid_t dset_id, char *fields )

Purpose:
Returns the size in bytes of the dataset’s datatype.

Description:
This routine allows the user to find out the datatype size for the dataset associated with dset_id. If the parameter fields is NULL, this routine just returns the size of the dataset’s datatype. If the dataset has a compound datatype and fields is non-NULL, this routine returns the size of the datatype(s) for the selected fields specified in fields. Note that ’,’ is the separator for the fields of a compound datatype while ’.’ (dot) is the separator for a nested field. Use a backslash ( \ ) to escape characters in field names that conflict with these two separators.

Parameters:
hid_t dset_id    IN: The dataset identifier
char *fields IN: The pointer to a comma-separated list of fields for a compound datatype.

Returns:
If successful, returns the size in bytes of the dataset’s datatype. Otherwise, returns 0.

Example Usage:
See the examples in H5LDget_dset_elmts for the usage of this routine.

Fortran Interface:
None

See Also:

History:
Release     Change
1.10.0 C function introduced with this release.