summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2002-12-02 19:47:57 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2002-12-02 19:47:57 (GMT)
commit437dd9be23c86f8228bcb8b7090189a911cc00ef (patch)
tree759809852985607289214f74b7f827fccad4e746 /src/H5F.c
parent4c546d9e6ee7bae685476df6cd4e627eaab5de12 (diff)
downloadhdf5-437dd9be23c86f8228bcb8b7090189a911cc00ef.zip
hdf5-437dd9be23c86f8228bcb8b7090189a911cc00ef.tar.gz
hdf5-437dd9be23c86f8228bcb8b7090189a911cc00ef.tar.bz2
[svn-r6145]
Purpose: New feature to H5Dget_offset Description: If user block is set, H5Dget_offset should be able to return the absolute offset from the beginning of file. Platforms tested: eirene, arabica
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