intIsBitSet static method

bool intIsBitSet(
  1. int value,
  2. int bitNum
)

Get if the specified bit is set.

Implementation

static bool intIsBitSet(int value, int bitNum) {
  return (value & (1 << bitNum)) != 0;
}