H5Pset_external
limited to offsets <= 2GB on Windows
#3506
Labels
Component - C Library
Core C library issues (usually in the src directory)
Priority - 3. Low 🔽
Code cleanup, small feature change requests, etc.
Type - Improvement
Improvements that don't add a new feature or functionality
Milestone
Describe the bug
A clear and concise description of what the bug is.
The
H5Pset_external
function takes anoffset
argument of typeoff_t
, which is a 32-bit signed integer on Windows. This makes it impossible to link to offsets > 2GB.Interestingly, the only limitation seems to be the API definition. The implementation already uses a
HDoff_t
type for offsets, which is also 64-bit on Windows.Expected behavior
A clear and concise description of what you expected to happen.
It should be possible to link to arbitrary offsets on Windows, like it is on Linux. The easiest solution for this would be to accept a 64-bit offset in the API on Windows.
Platform (please complete the following information)
The text was updated successfully, but these errors were encountered: