H5Gget_num_objects
(hid_t loc_id
,
hsize_t* num_obj
)
H5Gget_num_objects
returns number of objects in a group.
Group is specified by its identifier loc_id
.
If file identifier is passed in, then number of objects in the root group
is returned.
loc_id
num_obj
H5Gget_objname_from_idx
(hid_t loc_id
, hsize_t idx
, size_t max_size
,
char* name
, size_t* name_len
)
H5Gget_objname_from_idx
returns a name of the object in the group
to the buffer name
provided by user.
Group is specified by its identifier loc_id
.
If file identifier is passed in, then root group is specified.
Object is identified
by its transient index idx
.
The value of index idx
is any nonnegative
number less than the total number of objects in the group returned by
H5Gget_num_objects
.
Please note that the same object may have a different index next time
the group is opened if objects were added/deleted from/to the group.
If the size of the provided buffer name
is less or equal the actual object name
length, the object name is trancated to the max_size - 1
characters.
loc_id
idx
max_size
name
name
namelen - 1
object name characters.
name_len