Aller au contenu

toFlagInt

Converts a set of `FlagEnumeration` instances into a single integer representing the combined bitwise value. The computation aggregates the `value` property of all elements within the set using bitwise OR operations. If the set is empty, the result is 0. If the set contains a single element, its value is returned. #### Return The combined bitmask as an integer, based on the union of all `FlagEnumeration` values in the set.