diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1999-07-03 10:31:26 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1999-07-03 10:31:26 (GMT) |
commit | 650e29cff6b23b99318f70699af08cfdb57ea924 (patch) | |
tree | e37bc1ece43cbbad2504adbea63a5ef9241d2453 /src/H5RA.c | |
parent | 1b20703c2048cf176df2d5c792de56da92ae03e2 (diff) | |
download | hdf5-650e29cff6b23b99318f70699af08cfdb57ea924.zip hdf5-650e29cff6b23b99318f70699af08cfdb57ea924.tar.gz hdf5-650e29cff6b23b99318f70699af08cfdb57ea924.tar.bz2 |
[svn-r1418] Modified H5Tconvert to require a dataset transfer property list ID as the
final parameter (so that VL datatypes have a way to pass in the custom memory
allocation routines).
Fixed a conversion bug when VL fields were part of a compound datatype that
was causing the no-op conversion routine to be used instead of the vlen routine.
Added the H5Pset_vlen_mem_manager and H5Pget_vlen_mem_manager routines to
allow users to provide their own custom memory allocation routines for VL data
read in from the file and reclaimed with H5Dvlen_reclaim.
Finished coding on H5Dvlen_reclaim so it works now.
Diffstat (limited to 'src/H5RA.c')
-rw-r--r-- | src/H5RA.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -738,7 +738,7 @@ H5RA_write(H5RA_t *ra, hssize_t start_row, hsize_t nrows, H5T_t *type, "memory allocation failed for meta data"); } if (H5D_read(ra->meta, H5RA_meta_type_g, mm_space, mf_space, - &H5F_xfer_dflt, meta)<0) { + H5P_DEFAULT, meta)<0) { HGOTO_ERROR(H5E_RAGGED, H5E_READERROR, FAIL, "unable to read meta data"); } @@ -779,7 +779,7 @@ H5RA_write(H5RA_t *ra, hssize_t start_row, hsize_t nrows, H5T_t *type, HGOTO_ERROR(H5E_RAGGED, H5E_CANTINIT, FAIL, "unable to set meta data selection"); } - if (H5D_write(ra->raw, type, rm_space, rf_space, &H5F_xfer_dflt, + if (H5D_write(ra->raw, type, rm_space, rf_space, H5P_DEFAULT, raw_buf)<0) { HGOTO_ERROR(H5E_RAGGED, H5E_WRITEERROR, FAIL, "unable to write raw data"); @@ -809,7 +809,7 @@ H5RA_write(H5RA_t *ra, hssize_t start_row, hsize_t nrows, H5T_t *type, "unable to set meta data selection"); } if (H5D_write(ra->meta, H5RA_meta_type_g, mm_space, mf_space, - &H5F_xfer_dflt, meta)<0) { + H5P_DEFAULT, meta)<0) { HGOTO_ERROR(H5E_RAGGED, H5E_WRITEERROR, FAIL, "unable to write meta data"); } @@ -926,7 +926,7 @@ H5RA_fix_overflow(H5RA_t *ra, H5T_t *type, H5RA_meta_t *meta, hsize_t nelmts, HGOTO_ERROR(H5E_RAGGED, H5E_CANTINIT, FAIL, "unable to set overflow selection"); } - if (H5D_write(ra->over, type, om_space, of_space, &H5F_xfer_dflt, + if (H5D_write(ra->over, type, om_space, of_space, H5P_DEFAULT, buf)<0) { HGOTO_ERROR(H5E_RAGGED, H5E_WRITEERROR, FAIL, "unable to write to overflow dataset"); @@ -1103,7 +1103,7 @@ H5RA_read(H5RA_t *ra, hssize_t start_row, hsize_t nrows, H5T_t *type, HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed for raw dataset"); } - if (H5D_read(ra->raw, type, rm_space, rf_space, &H5F_xfer_dflt, + if (H5D_read(ra->raw, type, rm_space, rf_space, H5P_DEFAULT, raw_buf)<0) { HGOTO_ERROR(H5E_RAGGED, H5E_READERROR, FAIL, "unable to read raw dataset"); @@ -1134,7 +1134,7 @@ H5RA_read(H5RA_t *ra, hssize_t start_row, hsize_t nrows, H5T_t *type, "unable to set meta data selection"); } if (H5D_read(ra->meta, H5RA_meta_type_g, mm_space, mf_space, - &H5F_xfer_dflt, meta)<0) { + H5P_DEFAULT, meta)<0) { HGOTO_ERROR(H5E_RAGGED, H5E_READERROR, FAIL, "unable to read meta data"); } @@ -1182,7 +1182,7 @@ H5RA_read(H5RA_t *ra, hssize_t start_row, hsize_t nrows, H5T_t *type, HGOTO_ERROR(H5E_RAGGED, H5E_CANTINIT, FAIL, "unable to set overflow selection"); } - if (H5D_read(ra->over, type, om_space, of_space, &H5F_xfer_dflt, + if (H5D_read(ra->over, type, om_space, of_space, H5P_DEFAULT, buf_out[i])<0) { HGOTO_ERROR(H5E_RAGGED, H5E_CANTINIT, FAIL, "unable to read overflow dataset"); |