TByteHelper.TestBit¶
Check bit.
Declaration¶
Source position: syshelph.inc line 902
public
function TByteHelper.TestBit(const Index: TByteBitIndex) : Boolean;
Description¶
TestBit reads boolean value (true if bit is 1, and false if bit is 0) from bit number determined by argument Index.
See also¶
| Name | Description |
|---|---|
| TByteHelper.SetBit | Set bit to 1. |
| TByteHelper.ClearBit | Set bit to 0. |
| TByteHelper.ToggleBit | Invert 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. |