summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5F.c')
-rw-r--r--src/H5F.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/H5F.c b/src/H5F.c
index 1455709..26ac386 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -3509,6 +3509,24 @@ done:
FUNC_LEAVE(ret_value);
} /* end H5F_get_fileno() */
+
+haddr_t
+H5F_get_base_addr(const H5F_t *f)
+{
+ haddr_t ret_value;
+
+ FUNC_ENTER_NOAPI(H5F_get_base_addr, FAIL);
+
+ assert(f);
+ assert(f->shared);
+
+ /* Retrieve the file's base address */
+ ret_value = f->shared->base_addr;
+
+done:
+ FUNC_LEAVE(ret_value);
+}
+
/*-------------------------------------------------------------------------
* Function: H5F_block_read