SetBit
Description
Sets index bitPos
of value
to bit
and updates value
accordingly.
Parameters
value
The variable to update.bitPos
The position of the bit to set. Indices 0-7 are valid.bit
Updated boolean value.
Return Value
Updates value
with the applied bit.