Sets up use of the Fletcher32 checksum filter
Procedure:
H5P_SET_FLETCHER32 ( plist_id )
Signature:
herr_t H5Pset_fletcher32(
hid_t plist_id
)
Fortran90 Interface: h5pset_fletcher32_f
SUBROUTINE h5pset_fletcher32_f(prp_id, hdferr)
IMPLICIT NONE
INTEGER(HID_T), INTENT(IN) :: prp_id ! Property list identifier
INTEGER, INTENT(OUT) :: hdferr ! Error code
! 0 on success and -1 on failure
END SUBROUTINE h5pset_fletcher32_f
Parameters:
hid_t plist_id
IN: Dataset or group creation property list identifier
Description:
H5P_SET_FLETCHER32 sets the Fletcher32 checksum filter in the dataset or group creation property list plist_id
.
Returns:
Returns a non-negative value if successful; otherwise returns a negative value.
Example:
/*
* Create the dataset creation property list, add the Fletcher32 filter
* and set the chunk size.
*/
dcpl = H5Pcreate (H5P_DATASET_CREATE);
status = H5Pset_fletcher32 (dcpl);
status = H5Pset_chunk (dcpl, 2, chunk);
/*
* Create the dataset.
*/
dset = H5Dcreate (file, DATASET, H5T_STD_I32LE, space, H5P_DEFAULT, dcpl,
H5P_DEFAULT);
CALL h5pcreate_f(H5P_DATASET_CREATE_F, dcpl, hdferr)
CALL h5pset_fletcher32_f(dcpl, hdferr)
CALL h5pset_chunk_f(dcpl, 2, chunk, hdferr)
!
! Create the dataset.
!
CALL h5dcreate_f(file, dataset, H5T_STD_I32LE, space, dset, hdferr, dcpl)
History:
Release | Change |
---|
1.6.0 | Function introduced in this release. |
1.6.3 | Error in checksum calculation on little-endian systems corrected in this release. |
1.8.5 | Function extended to work with group creation property lists. |
--- Last Modified: August 07, 2019 | 02:28 PM