iterateAttributes
fn
hsize_t iterateAttributes(hid_t locId, bool delegate(AttributeInfo) dg,
IndexType indexType = IndexType.NAME, IterOrder order = IterOrder.NATIVE)Iterates over attributes attached to an object.
The delegate is called for each attribute, receiving an AttributeInfo struct. Return true from the delegate to continue iteration, false to stop early.
Parameters
locId | Object identifier (file, group, dataset, or named datatype) |
dg | Delegate to call for each attribute |
indexType | Type of index to use (default: NAME) |
order | Iteration order (default: NATIVE) |
Returns
The number of attributes iterated over
Throws
HDF5Exception if iteration fails
Any exception thrown by the delegate