Page tree

 

JAVA

FORTRAN

C++

C

 

Link

H5D_VLEN_GET_BUF_SIZE

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

Procedure:

H5D_VLEN_GET_BUF_SIZE(dataset_id, type_id, space_id, size)

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

Parameters:
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

Description:

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:

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

Example:

Coming Soon!

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

--- Last Modified: December 18, 2018 | 01:37 PM