summaryrefslogtreecommitdiffstats
path: root/src/H5S.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-11-30 21:38:30 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-11-30 21:38:30 (GMT)
commit27c0fb2220c241337bd82426ca2c178bff2e3870 (patch)
tree95ab5672227cef811d96033f16dc2b265f0a8501 /src/H5S.c
parentce7f9328b67687756afa530885659bc2ced77539 (diff)
downloadhdf5-27c0fb2220c241337bd82426ca2c178bff2e3870.zip
hdf5-27c0fb2220c241337bd82426ca2c178bff2e3870.tar.gz
hdf5-27c0fb2220c241337bd82426ca2c178bff2e3870.tar.bz2
[svn-r13002] Description:
Fix problem with copying objects when the dataset to copy has an "older" version of the layout message and needs to compute the size of the dataset's storage after the dataspace information is available. Minor random cleanups also... Tested on: FreeBSD/32 4.11 (sleipnir) Too minor/weird to test w/h5committest...
Diffstat (limited to 'src/H5S.c')
-rw-r--r--src/H5S.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/H5S.c b/src/H5S.c
index fa58bc9..0fbb7fa 100644
--- a/src/H5S.c
+++ b/src/H5S.c
@@ -2306,6 +2306,32 @@ done:
/*-------------------------------------------------------------------------
+ * Function: H5S_extent_nelem
+ *
+ * Purpose: Determines how many elements a dataset extent describes.
+ *
+ * Return: Success: Number of data points in the dataset extent.
+ * Failure: negative
+ *
+ * Programmer: Quincey Koziol
+ * Thursday, November 30, 2006
+ *
+ *-------------------------------------------------------------------------
+ */
+hsize_t
+H5S_extent_nelem(const H5S_extent_t *ext)
+{
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5S_extent_nelem)
+
+ /* check args */
+ HDassert(ext);
+
+ /* Return the number of elements in extent */
+ FUNC_LEAVE_NOAPI(ext->nelem)
+} /* end H5S_extent_nelem() */
+
+
+/*-------------------------------------------------------------------------
* Function: H5S_debug
*
* Purpose: Prints debugging information about a data space.