[Feature Request] expose ndims
in H5Dchunk_iter
callback
#2437
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
Is your feature request related to a problem? Please describe.
It's hard to work with the
offset
array inH5Dchunk_iter
callback because we don't know the size of the array. It would be too expensive to callH5Sget_simple_extent_ndims
each time.Describe the solution you'd like
I propose that we should pass
ndims
to the callback. I.e.typedef int (*H5D_chunk_iter_op_t)(const hsize_t *offset, unsigned ndims, unsigned filter_mask, haddr_t addr, hsize_t size, void *op_data);
Describe alternatives you've considered
Call
H5Sget_simple_extent_ndims
in the callback.Additional context
I'm working on implementing Java binding for
H5Dchunk_iter
. I don't see there's an easy workaround. I can upload my patch if needed.The text was updated successfully, but these errors were encountered: