TByteHelper.SetBit¶
Set bit to 1.
Declaration¶
Source position: syshelph.inc line 899
public
function TByteHelper.SetBit(const Index: TByteBitIndex) : Byte;
Description¶
SetBit puts value 1 to bit number determined by argument Index.
See also¶
| Name | Description |
|---|---|
| TByteHelper.ClearBit | Set bit to 0. |
| TByteHelper.ToggleBit | Invert bit. |
| TByteHelper.TestBit | Check bit. |
| TByteHelper.HighestSetBitPos | Return the position of the leftmost bit set. |
| TByteHelper.LowestSetBitPos | Return the position of the rightmost bit set. |
| TByteHelper.SetBitsCount | Count number of bits set. |
| TByteHelper.Bits | Read or write a bit. |