BitmaskExtension extension Utility

Provides extension methods for bitmask operations on integers.

on

Methods

has(int flag) bool

Available on int, provided by the BitmaskExtension extension

Checks if the integer has a specific flag bit set.
hasAll(int flags) bool

Available on int, provided by the BitmaskExtension extension

Checks if the integer has all specified flags bits set.