Returns the names of individual base flags that are set in a given bitmask.
This function filters out composite flags (e.g., ALL_RD, PO_RDWR) and returns only the names of "base" flags — flags that represent a single bit.
ALL_RD
PO_RDWR
An array of ObjectFlags key names corresponding to individual set flags.
ObjectFlags
const flags = ObjectFlags.PO_RD | ObjectFlags.SO_WR | ObjectFlags.TXPDO_MAP;const names = getObjectFlagNames(flags);// names => ["PO_RD", "SO_WR", "TXPDO_MAP"]
The bitmask containing one or more ObjectFlags.
Generated using TypeDoc
Returns the names of individual base flags that are set in a given bitmask.
This function filters out composite flags (e.g.,
ALL_RD
,PO_RDWR
) and returns only the names of "base" flags — flags that represent a single bit.Returns
An array of
ObjectFlags
key names corresponding to individual set flags.Example