Page tree

 

JAVA

FORTRAN

C++

C

 

Link

H5T_GET_MEMBER_OFFSET

Retrieves the offset of a field of a compound datatype.

Procedure:

H5T_GET_MEMBER_OFFSET(dtype_id, memb_no)

Signature:

size_t H5Tget_member_offset( hid_t dtype_id, unsigned memb_no )

SUBROUTINE h5tget_member_offset_f(type_id, member_no, offset, hdferr) 
  IMPLICIT NONE
  INTEGER(HID_T), INTENT(IN) :: type_id    ! Datatype identifier 
  INTEGER, INTENT(IN) :: member_no         ! Number of the field  
                                           ! whose offset is requested
  INTEGER(SIZE_T), INTENT(OUT) :: offset   ! Byte offset of the the 
                                           ! beginning of the field
  INTEGER, INTENT(OUT) :: hdferr           ! Error code
END SUBROUTINE h5tget_member_offset_f

Parameters:
hid_t dtype_id    IN: Identifier of datatype to query.
unsigned memb_noIN: Number of the field whose offset is requested.

Description:

H5Tget_member_offset retrieves the byte offset of the beginning of a field within a compound datatype with respect to the beginning of the compound datatype datum.

Returns:

Returns the byte offset of the field if successful; otherwise returns 0 (zero). Note that zero is a valid offset and that this function will fail only if a call to H5Tget_member_class() fails with the same arguments.

Example:

Coming Soon!

History:
Release    C
1.6.4membno parameter type changed to unsigned.

--- Last Modified: December 04, 2017 | 07:00 AM