H5Dget_num_chunks

fnherr_t H5Dget_num_chunks(hid_t dset_id, hid_t fspace_id, hsize_t * nchunks)

Returns the number of chunks in a dataset.

Parameters

dset_idDataset identifier
fspace_idFile dataspace identifier, or H5S_ALL for entire dataset
nchunksPointer to receive the number of chunks

Returns

Non-negative on success, negative on failure.