Show / Hide Table of Contents

    Delegate H5A.operator_t

    Delegate for H5Aiterate2() callbacks See https://www.hdfgroup.org/HDF5/doc/RM/RM_H5A.html#Annot-Iterate2

    Namespace: HDF.PInvoke
    Assembly: HDF.PInvoke.dll
    Syntax
    public delegate System.Int32 operator_t(System.Int64 location_id, IntPtr attr_name, ref H5A.info_t ainfo, IntPtr op_data);
    Parameters
    Type Name Description
    System.Int64 location_id

    The location identifier for the group or dataset being iterated over

    IntPtr attr_name

    The name of the current object attribute.

    H5A.info_t ainfo

    The attribute’s

    info
    struct

    IntPtr op_data

    A pointer referencing operator data passed to

    iterate

    Returns
    Type Description
    System.Int32

    Valid return values from an operator and the resulting H5Aiterate2 and op behavior are as follows: Zero causes the iterator to continue, returning zero when all attributes have been processed. A positive value causes the iterator to immediately return that positive value, indicating short-circuit success. The iterator can be restarted at the next attribute, as indicated by the return value of

    n
    . A negative value causes the iterator to immediately return that value, indicating failure. The iterator can be restarted at the next attribute, as indicated by the return value of
    n
    .

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX