H5Iobject_verify

fnvoid * H5Iobject_verify(hid_t id, H5I_type_t type)

Returns the object referenced by an identifier, verifying its type.

Retrieves and returns a pointer to the object associated with the identifier, after verifying that the identifier belongs to the specified type.

Parameters

idThe identifier to look up
typeThe expected type of the identifier

Returns

A pointer to the object on success, or null if the ID is invalid

or does not belong to the specified type.