areBitsSet static method

bool areBitsSet(
  1. int value,
  2. int bitMask
)

Get if the specified bits are set.

Implementation

static bool areBitsSet(int value, int bitMask) {
  return (value & bitMask) != 0;
}