Determines the number of bytes required to store variable-length (VL) data

H5D_VLEN_GET_BUF_SIZE(dataset_id, type_id, space_id, size)

Signature:

Edit each block below with the corresponding language signature for this function.

If there is no implementation for a given language, simply remove the entire block (left click --> Remove) for that language signature.

herr_t H5Dvlen_get_buf_size(hid_t dataset_idhid_t type_idhid_t space_idhsize_t *size ) 
SUBROUTINE h5dvlen_get_max_len_f(dset_id, size, hdferr)
  IMPLICIT NONE
  INTEGER(HID_T), INTENT(IN) :: dset_id     ! Dataset identifier  
  INTEGER(HID_T), INTENT(IN) :: type_id     ! Datatype identifier  
  INTEGER(HID_T), INTENT(IN) :: space_id    ! Dataspace identifier  
            
  INTEGER(SIZE_T), INTENT(OUT)  :: elem_len ! Maximum length of the element
  INTEGER, INTENT(OUT) :: hdferr            ! Error code  
                                            ! 0 on success and -1 on failure
END SUBROUTINE h5dvlen_get_max_len_f
hid_t dataset_id    IN: Identifier of the dataset to query
hid_t type_idIN: Datatype identifier
hid_t space_idIN: Dataspace identifier
hsize_t *sizeOUT: The size in bytes of the memory buffer required to store the VL data

H5D_VLEN_GET_BUF_SIZE determines the number of bytes required to store the VL data from the dataset, using the space_id for the selection in the dataset on disk and the type_id for the memory representation of the VL data in memory.

*size is returned with the number of bytes required to store the VL data in memory.

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

Example:

Coming Soon!

Release    Change
1.4.5Fortran 90 function introduced in this release
1.4.0C function introduced in this release