diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1997-10-17 23:51:16 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1997-10-17 23:51:16 (GMT) |
commit | 390f07f7bb1a54adcc873a36f4d5fafce7bdd34d (patch) | |
tree | 7c543f9e688292ad449958e6685178354a083435 /src/H5D.c | |
parent | 4ebe80e038350609c21f339a19962b2ff1b8a176 (diff) | |
download | hdf5-390f07f7bb1a54adcc873a36f4d5fafce7bdd34d.zip hdf5-390f07f7bb1a54adcc873a36f4d5fafce7bdd34d.tar.gz hdf5-390f07f7bb1a54adcc873a36f4d5fafce7bdd34d.tar.bz2 |
[svn-r125] Changed name of dataspace for "entire dataset" read/write from H5P_SCALAR to
H5P_ALL
Diffstat (limited to 'src/H5D.c')
-rw-r--r-- | src/H5D.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -401,7 +401,7 @@ done: DESCRIPTION This function reads dataset object data from the file. The dataspace ID determines the slice/hyper-slab/portion of the dataset to write. - H5P_SCALAR is a special value which indicates that the entire dataset is + H5P_ALL is a special value which indicates that the entire dataset is to be written out. (For datasets which have a scalar dataspace for the entire dataset, this is somewhat redundant.... :-) --------------------------------------------------------------------------*/ @@ -433,7 +433,7 @@ herr_t H5Dread(hid_t oid, hid_t did, VOIDP buf) HGOTO_ERROR(H5E_FUNC, H5E_UNINITIALIZED, FAIL); /* Compute the number of bytes to read */ - if(did==H5P_SCALAR) /* Check if we are reading the entire dataset */ + if(did==H5P_ALL) /* Check if we are reading the entire dataset */ toread=H5Tsize(dataset->tid,BTRUE)*H5Pnelem(dataset->sid); else HGOTO_ERROR(H5E_INTERNAL, H5E_UNSUPPORTED, FAIL); @@ -485,7 +485,7 @@ done: DESCRIPTION This function writes dataset object data to the file. The dataspace ID determines the slice/hyper-slab/portion of the dataset to write. - H5P_SCALAR is a special value which indicates that the entire dataset is + H5P_ALL is a special value which indicates that the entire dataset is to be written out. (For datasets which have a scalar dataspace for the entire dataset, this is somewhat redundant.... :-) --------------------------------------------------------------------------*/ @@ -517,7 +517,7 @@ herr_t H5Dwrite(hid_t oid, hid_t did, VOIDP buf) HGOTO_ERROR(H5E_FUNC, H5E_UNINITIALIZED, FAIL); /* Compute the number of bytes to write out */ - if(did==H5P_SCALAR) /* Check if we are writing out the entire dataset */ + if(did==H5P_ALL) /* Check if we are writing out the entire dataset */ towrite=H5Tsize(dataset->tid,BTRUE)*H5Pnelem(dataset->sid); else HGOTO_ERROR(H5E_INTERNAL, H5E_UNSUPPORTED, FAIL); |