summaryrefslogtreecommitdiffstats
path: root/src/H5FD.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2008-01-03 23:05:04 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2008-01-03 23:05:04 (GMT)
commit1831bc1d133e5c37bc5823df49f9fad7ac628f6b (patch)
tree89f33cdf6bee5e8b3b374eb87b6753852513edc7 /src/H5FD.c
parent6237d44a08a2414f021ee93c1a2b529125618fb4 (diff)
downloadhdf5-1831bc1d133e5c37bc5823df49f9fad7ac628f6b.zip
hdf5-1831bc1d133e5c37bc5823df49f9fad7ac628f6b.tar.gz
hdf5-1831bc1d133e5c37bc5823df49f9fad7ac628f6b.tar.bz2
[svn-r14372] Description:
Further cleanups & simplifications to prepare for next phase of work. Tested on: FreeBSD/32 6.2 (duty) Mac OS X/32 10.5.1 (amazon)
Diffstat (limited to 'src/H5FD.c')
-rw-r--r--src/H5FD.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/H5FD.c b/src/H5FD.c
index 06398f0..3ae6d8e 100644
--- a/src/H5FD.c
+++ b/src/H5FD.c
@@ -1806,6 +1806,36 @@ done:
/*-------------------------------------------------------------------------
+ * Function: H5FD_get_maxaddr
+ *
+ * Purpose: Private version of H5FDget_eof()
+ *
+ * Return: Success: The maximum address allowed in the file.
+ * Failure: HADDR_UNDEF
+ *
+ * Programmer: Quincey Koziol
+ * Thursday, January 3, 2008
+ *
+ *-------------------------------------------------------------------------
+ */
+haddr_t
+H5FD_get_maxaddr(const H5FD_t *file)
+{
+ haddr_t ret_value; /* Return value */
+
+ FUNC_ENTER_NOAPI(H5FD_get_maxaddr, HADDR_UNDEF)
+
+ HDassert(file);
+
+ /* Set return value */
+ ret_value = file->maxaddr;
+
+done:
+ FUNC_LEAVE_NOAPI(ret_value)
+} /* end H5FD_get_maxaddr() */
+
+
+/*-------------------------------------------------------------------------
* Function: H5FDread
*
* Purpose: Reads SIZE bytes from FILE beginning at address ADDR