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).
PO_RD
ALL_RDWR
RXTXPDO_MAP
The matching flag name, or undefined if no exact match exists.
undefined
getExactFlagName(ObjectFlags.PO_RD); // "PO_RD"getExactFlagName(ObjectFlags.ALL_RDWR); // "ALL_RDWR"getExactFlagName(ObjectFlags.PO_RD | ObjectFlags.SO_WR); // undefined
The exact value to match.
Generated using TypeDoc
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