diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2011-05-27 17:30:24 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2011-05-27 17:30:24 (GMT) |
commit | 157623de6a3970f68d725d9dda0974c0ef6f67cd (patch) | |
tree | 0b73f16bbc6c3d85c6340ed484af37b9943c1a98 /src/H5Ppublic.h | |
parent | de14c332f9dc8535d435e19a2a43e7f9f0ff0e80 (diff) | |
download | hdf5-157623de6a3970f68d725d9dda0974c0ef6f67cd.zip hdf5-157623de6a3970f68d725d9dda0974c0ef6f67cd.tar.gz hdf5-157623de6a3970f68d725d9dda0974c0ef6f67cd.tar.bz2 |
[svn-r20913] Issue 7579 - The overflowing ENUM values are inconsistent. When no conversion is involved in reading or writing the
data, overflowing values are retained. When conversion happens, the values become -1. The conversion function puts -1
when overflow happens. I added two new dataset transfer property to control whether to fill 0xff in the destination
data or convert to the destination data when overflow happens. The two new functions are H5Pset(get)_enum_conv_overflow. I also added test cases in enum.c and dtypes.c.
Tested on jam, koala, and heiwa.
Diffstat (limited to 'src/H5Ppublic.h')
-rw-r--r-- | src/H5Ppublic.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5Ppublic.h b/src/H5Ppublic.h index 6867b63..80c028a 100644 --- a/src/H5Ppublic.h +++ b/src/H5Ppublic.h @@ -357,6 +357,8 @@ H5_DLL herr_t H5Pset_hyper_vector_size(hid_t fapl_id, size_t size); H5_DLL herr_t H5Pget_hyper_vector_size(hid_t fapl_id, size_t *size/*out*/); H5_DLL herr_t H5Pset_type_conv_cb(hid_t dxpl_id, H5T_conv_except_func_t op, void* operate_data); H5_DLL herr_t H5Pget_type_conv_cb(hid_t dxpl_id, H5T_conv_except_func_t *op, void** operate_data); +H5_DLL herr_t H5Pset_enum_conv_overflow(hid_t plist_id, hbool_t conv_overflow); +H5_DLL herr_t H5Pget_enum_conv_overflow(hid_t plist_id, hbool_t *conv_overflow/*out*/); /* Link creation property list (LCPL) routines */ H5_DLL herr_t H5Pset_create_intermediate_group(hid_t plist_id, unsigned crt_intmd); |