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

ndimsNumber of dimensions in the dataset
dgDelegate to call for each chunk, receives ChunkInfo and index. Return false from delegate to stop iteration early.
fspaceIdFile dataspace identifier, or H5S_ALL for all chunks

Returns

The number of chunks iterated over

Throws

HDF5Exception if iteration fails