summaryrefslogtreecommitdiffstats
path: root/src/H5FD.c
diff options
context:
space:
mode:
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