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/H5Dprivate.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/H5Dprivate.h')
-rw-r--r-- | src/H5Dprivate.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5Dprivate.h b/src/H5Dprivate.h index 5849598..cc770df 100644 --- a/src/H5Dprivate.h +++ b/src/H5Dprivate.h @@ -76,6 +76,7 @@ #define H5D_XFER_EDC_NAME "err_detect" /* EDC */ #define H5D_XFER_FILTER_CB_NAME "filter_cb" /* Filter callback function */ #define H5D_XFER_CONV_CB_NAME "type_conv_cb" /* Type conversion callback function */ +#define H5D_XFER_CONV_ENUM_OVERFLOW_NAME "conv_enum_overflow" /* conversion of enum overflow values */ #define H5D_XFER_XFORM_NAME "data_transform" /* Data transform */ #ifdef H5_HAVE_INSTRUMENTED_LIBRARY /* Collective chunk instrumentation properties */ |