<pre><code class="language-fortran">SUBROUTINE H5LRread_region_f(loc_id, ref, dtype, numelem, buf, error)
IMPLICIT NONE
INTEGER(hid_t), INTENT(IN) :: loc_id ! File identifier for the HDF5 file containing the dataset with
! the referenced region or an object identifier for any object
! in that file
TYPE(hdset_reg_ref_t_f), INTENT(IN) :: ref ! Region reference specifying data to be read in
INTEGER(hid_t), INTENT(IN) :: dtype ! Memory datatype of data read from referenced region into the
! application buffer
INTEGER(size_t), INTENT(INOUT) :: numelem ! Number of elements to be read into buffer buf
TYPE(C_PTR), INTENT(OUT) :: buf ! Buffer in which data is returned to the application
INTEGER, INTENT(OUT) :: error ! Error code:
! 0 on success and -1 on failure
END SUBROUTINE H5LRread_region_f</code></pre> |