Function getExactObjectFlagName

  • Returns the name of any flag (base or compound) that exactly matches the given value.

    This includes both single-bit flags (e.g., PO_RD) and combined flags (e.g., ALL_RDWR, RXTXPDO_MAP).

    Returns

    The matching flag name, or undefined if no exact match exists.

    Example

    getExactFlagName(ObjectFlags.PO_RD);       // "PO_RD"
    getExactFlagName(ObjectFlags.ALL_RDWR); // "ALL_RDWR"
    getExactFlagName(ObjectFlags.PO_RD | ObjectFlags.SO_WR); // undefined

    Parameters

    • flagsValue: number

      The exact value to match.

    Returns string | undefined

Generated using TypeDoc