StaticchangeChange bit according to given value on data from index
Unsigned integer value
Unsigned integer value (0..7)
StaticclearStaticgetTransforms a position (1..n) to byte index and inner bit position
Unsigned integer value (1..n)
StatichasChecks if all logical "1" bits from byte2 compare to the ones in byte1
// 1. 0101 0010 (82 dec)
// 2. 0100 0010 (66 dec)
// ------------- AND
// 0100 0010 (66 dec)
// 66 dec === 66 dec :-)
//
// 1. 0010 1100 (44 dec)
// 2. 0010 1000 (40 dec)
// ------------- AND
// 0010 1000 (40 dec)
// 40 dec === 40 dec :-)
// 1. 0000 0000 (0 dec)
// 2. 0001 0000 (16 dec)
// -------------- AND
// 0000 0000 (0 dec)
// 0 dec !== 16 dec :-(
// 1. 0000 0000 (0 dec)
// 2. 0010 0010 (34 dec)
// -------------- AND
// 0000 0000 (0 dec)
// 0 dec !== 34 dec :-(
StatichasCompare 2 bytes, matches when byte1 has any similar bits set compared to byte2
StaticisCheck if bit is set false on index
Unsigned integer value
Unsigned integer value (0..7)
StaticisCheck if bit is set true on index
Unsigned integer value
Unsigned integer value (0..7)
StaticsetStatictoggle
This is the Gibbon Processor which does all the bit masking, nothing special ;)