Dataset.iterateChunks
hsize_t iterateChunks(int ndims, bool delegate(ChunkInfo, hsize_t) dg,
hid_t fspaceId = H5S_ALL)Iterates over all chunks in the dataset, calling a delegate for each.
Parameters
ndims | Number of dimensions in the dataset |
dg | Delegate to call for each chunk, receives ChunkInfo and index. Return false from delegate to stop iteration early. |
fspaceId | File dataspace identifier, or H5S_ALL for all chunks |
Returns
The number of chunks iterated over
Throws
HDF5Exception if iteration fails