Page tree

The license could not be verified: License Certificate has expired!









Returns information about an external file


H5P_GET_EXTERNAL ( plist, idx, name_size, name, offset, size )


herr_t H5Pget_external(hid_t plist,
        unsigned idx,
        size_t name_size,
        char *name,
        off_t *offset,
        hsize_t *size

Fortran90 Interface: h5pget_external_f
SUBROUTINE h5pget_external_f(prp_id, idx, name_size, name, offset,bytes, hdferr)
  INTEGER(HID_T), INTENT(IN) :: prp_id     ! Property list identifier
  INTEGER, INTENT(IN) :: idx               ! External file index.
  INTEGER(SIZE_T), INTENT(IN) :: name_size ! Maximum length of name array
  CHARACTER(LEN=*), INTENT(OUT) :: name    ! Name of an external file
  INTEGER, INTENT(OUT) :: offset           ! Offset, in bytes, from the 
                                           ! beginning of the file to the 
                                           ! location in the file where
                                           ! the data starts.
  INTEGER(HSIZE_T), INTENT(OUT) :: bytes   ! Number of bytes reserved in 
                                           ! the file for the data
  INTEGER, INTENT(OUT) :: hdferr           ! Error code
                                           ! 0 on success and -1 on failure
END SUBROUTINE h5pget_external_f

hid_t plistIN: Identifier of a dataset creation property list
unsigned idxIN: External file index
size_t name_size    IN: Maximum length of name array
char *nameOUT: Name of the external file
off_t *offsetOUT: Pointer to a location to return an offset value
hsize_t *sizeOUT: Pointer to a location to return the size of the external file data


H5P_GET_EXTERNAL returns information about an external file. The external file is specified by its index, idx, which is a number from zero to N-1, where N is the value returned by H5P_GET_EXTERNAL_COUNT. At most name_size characters are copied into the name array. If the external file name is longer than name_size with the null terminator, the return value is not null terminated (similar to strncpy()).

If name_size is zero or name is the null pointer, the external file name is not returned. If offset or size are null pointers then the corresponding information is not returned.


Returns a non-negative value if successful; otherwise returns a negative value.


Coming Soon!

Release    Change
1.6.4idx parameter type changed to unsigned.

--- Last Modified: July 19, 2019 | 09:44 AM