IN: File dataspace selection identifier; H5S_ALL if the selection is the current extent of the dataset (See NOTE below)
IN: Chunk index in the selection. Index value may have a value of 0 up to the number of chunks stored in the file that have a nonempty intersection with the file dataspace selection
OUT: Pointer to a one-dimensional array with a size equal to the dataset’s rank. When the function returns, the array’s elements contain 0-based logical positions of the chunk’s first element in each dimension.
OUT: Filter mask that indicates which filters were used with the chunk when written. A zero value indicates that all enabled filters are applied on the chunk. A filter is skipped if the bit corresponding to the filter’s position in the pipeline (0 ≤ position < 32) is turned on.
OUT: Chunk address in the file
OUT: Chunk size in bytes
H5D_GET_CHUNK_INFO retrieves the offset coordinates offset, filter mask filter_mask, size size and address addr for the dataset specified by the identifier dset_id and the chunk specified by the index index. The chunk belongs to a set of chunks in the selection specified by fspace_id. If the queried chunk does not exist in the file, the size will be set to 0 and address to HADDR_UNDEF. The value pointed to by filter_mask will not be modified. NULL can be passed in for any OUT parameters.
NOTE: Please be aware that in HDF5-1.10.5, the dataspace intersection was not yet completed, and the index is of all the written chunks.
Returns a non-negative value if successful. Otherwise returns a negative value.