summaryrefslogtreecommitdiffstats
path: root/c++/src/H5DcreatProp.cpp
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2024-03-09 17:06:10 (GMT)
committerGitHub <noreply@github.com>2024-03-09 17:06:10 (GMT)
commit0ea1d7280ba93039cad14faf7b0ed65da20ce563 (patch)
tree5cd59487a3270224e0aec98606a13cf22706cc26 /c++/src/H5DcreatProp.cpp
parentd4c84f8d0a60e6eedd7288116d203dccf24a0b3a (diff)
downloadhdf5-0ea1d7280ba93039cad14faf7b0ed65da20ce563.zip
hdf5-0ea1d7280ba93039cad14faf7b0ed65da20ce563.tar.gz
hdf5-0ea1d7280ba93039cad14faf7b0ed65da20ce563.tar.bz2
Clean up off_t usage (#4095)
* Add comments to C++ and Fortran API calls that use off_t * Remove noise casts for small integers
Diffstat (limited to 'c++/src/H5DcreatProp.cpp')
-rw-r--r--c++/src/H5DcreatProp.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/c++/src/H5DcreatProp.cpp b/c++/src/H5DcreatProp.cpp
index 8f4ee7e..f45b54e 100644
--- a/c++/src/H5DcreatProp.cpp
+++ b/c++/src/H5DcreatProp.cpp
@@ -645,6 +645,8 @@ DSetCreatPropList::setFletcher32() const
/// the total size is larger than the size of a dataset then the
/// dataset can be extended (provided the data space also allows
/// the extending).
+///\note On Windows, off_t is typically a 32-bit signed long value, which
+/// limits the valid offset that can be set to 2 GiB.
//--------------------------------------------------------------------------
void
DSetCreatPropList::setExternal(const char *name, off_t offset, hsize_t size) const
@@ -693,6 +695,8 @@ DSetCreatPropList::getExternalCount() const
/// external file name will not be returned. If \a offset or
/// \a size are null pointers then the corresponding information
/// will not be returned.
+///\note On Windows, off_t is typically a 32-bit signed long value, which
+/// limits the valid offset that can be returned to 2 GiB.
//--------------------------------------------------------------------------
void
DSetCreatPropList::getExternal(unsigned idx, size_t name_size, char *name, off_t &offset, hsize_t &size) const