Beispiel #1
0
func numObjects(id C.hid_t) (uint, error) {
	var info C.H5G_info_t
	err := h5err(C.H5Gget_info(id, &info))
	return uint(info.nlinks), err
}
Beispiel #2
0
// NumObjects returns the number of objects in the Group.
func (g *CommonFG) NumObjects() (uint, error) {
	var info C.H5G_info_t
	err := h5err(C.H5Gget_info(g.id, &info))
	return uint(info.nlinks), err
}