List of utility methods to do Byte Bit Set
boolean | isBitSet(byte b, int bit) is Bit Set if (bit < 0 || bit >= 8) return false; return (b & (1 << bit)) > 0; |
byte | setBit(byte b, int bit) set Bit if (bit < 0 || bit >= 8) return b; return (byte) (b | (1 << bit)); |