Page tree

 

JAVA

FORTRAN

C++

C

 

Link

H5R_GET_TYPE

Retrieves the type of a reference

Procedure:

H5R_GET_TYPE ( ref_ptr )

Signature:

H5R_type_t H5Rget_type ( const H5R_ref_t *ref_ptr )

Parameters:
const H5R_ref_t * ref_ptr

IN: Pointer to reference to query
H5R_ref_t is defined in H5Rpublic.h as:   typedef unsigned char H5R_ref_t[H5R_REF_BUF_SIZE];

Description:

Given a reference, ref_ptr, H5R_GET_TYPE returns the type of the reference.

Valid returned reference types are:

Reference TypeDescription
H5R_OBJECT2Object reference version 2
H5R_DATASET_REGION2Region reference version 2
H5R_ATTRIBUTEAttribute reference

Note that H5R_OBJECT1 and H5R_DATASET REGION1 can never be associated to an H5R_ref_t reference and can therefore never be returned through that function.

Returns:

Returns a valid reference type if successful; otherwise returns H5R_UNKNOWN.

Example:

None

History:
ReleaseChange
1.12.0C function introduced in this release.

--- Last Modified: November 14, 2019 | 09:41 AM