summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1997-10-17 23:51:16 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1997-10-17 23:51:16 (GMT)
commit390f07f7bb1a54adcc873a36f4d5fafce7bdd34d (patch)
tree7c543f9e688292ad449958e6685178354a083435 /src
parent4ebe80e038350609c21f339a19962b2ff1b8a176 (diff)
downloadhdf5-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')
-rw-r--r--src/H5D.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5D.c b/src/H5D.c
index 90062e6..6153667 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -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);