Retrieves the padding type of the least and most-significant bit padding
Procedure:
H5T_GET_PAD (dtype_id, lsb, msb)
Signature:
herr_t H5Tget_pad( hid_t dtype_id, H5T_pad_t * lsb, H5T_pad_t * msb )
SUBROUTINE h5tget_pad_f(type_id, lsbpad, msbpad, hdferr)
IMPLICIT NONE
INTEGER(HID_T), INTENT(IN) :: type_id ! Datatype identifier
INTEGER, INTENT(OUT) :: lsbpad ! Padding type of the
! least significant bit
INTEGER, INTENT(OUT) :: msbpad ! Padding type of the
! most significant bit
! Possible values of
! padding type are:
! H5T_PAD_ZERO_F = 0
! H5T_PAD_ONE_F = 1
! H5T_PAD_BACKGROUND_F = 2
! H5T_PAD_ERROR_F = -1
! H5T_PAD_NPAD_F = 3
INTEGER, INTENT(OUT) :: hdferr ! Error code
END SUBROUTINE h5tget_pad_f
Parameters:
hid_t dtype_id | IN: Identifier of datatype to query |
H5T_pad_t * lsb | OUT: Pointer to location to return least-significant bit padding type |
H5T_pad_t * msb | OUT: Pointer to location to return most-significant bit padding type |
Description:
H5T_GET_PAD retrieves the padding type of the least and most-significant bit padding. Valid types are:
H5T_PAD_ZERO (0 ) | Set background to zeros |
H5T_PAD_ONE (1 ) | Set background to ones |
H5T_PAD_BACKGROUND (2 ) | Leave background alone |
Returns:
Returns a non-negative value if successful; otherwise returns a negative value.
Example:
--- Last Modified: May 16, 2019 | 11:25 AM