Get if the specified bit is set.
static bool intIsBitSet(int value, int bitNum) { return (value & (1 << bitNum)) != 0; }