in the function H5Sselect_hyperslab the start, stride, count, and block arguments. Are those in bytes or number of “elements” (like an index value)?
Thank You
Mike Jackson
in the function H5Sselect_hyperslab the start, stride, count, and block arguments. Are those in bytes or number of “elements” (like an index value)?
Thank You
Mike Jackson
That is a bit complicated. They often are are “number of elements”, but not generally “bytes”. Please see details on this page:
https://support.hdfgroup.org/documentation/hdf5/latest/_h5_s__u_g.html
I double down on @dave.allured 's comment: a dataspace is a logical construct, as opposed to a storage concept. Hence the currency must be elements and can’t be bytes. (Dataspace elements are “dataspace atoms” and have no size. However, dataset elements do have a byte-size.)
The waters get muddied by the sign ‘chunk,’ which is used in the documentation to symbolize two different things, namely a certain kind of subset of a dataspace (block, tile, …, logical chunk) and a storage object (a byte range in a file, …, a physical chunk).
G.
Thank You all for the clarifications. Helps out a bunch. Was able to track down our bug with that clarification.
–
Mike Jackson