diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2024-03-09 17:06:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-09 17:06:10 (GMT) |
commit | 0ea1d7280ba93039cad14faf7b0ed65da20ce563 (patch) | |
tree | 5cd59487a3270224e0aec98606a13cf22706cc26 /c++/src | |
parent | d4c84f8d0a60e6eedd7288116d203dccf24a0b3a (diff) | |
download | hdf5-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')
-rw-r--r-- | c++/src/H5DcreatProp.cpp | 4 |
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 |