Read or write a bit.
Source position: syshelph.inc line 904
public property TByteHelper.Bits[aIndex: TByteBitIndex] : Boolean |
Bits property reads or writes boolean value to a bit number determined by argument aIndex.
MyByte.Clear;// %00000000 MyByte equals 0 MyByte.Bits[0] := true; // %00000001 MyByte equals 1 MyByte.Bits[2] := true; // %00000101 MyByte equals 5 WriteLn(MyByte.Bits[2]); // TRUE
|
Set bit to 1. |
|
|
Set bit to 0. |
|
|
Invert bit. |
|
|
Check bit. |
|
|
Return the position of the leftmost bit set. |
|
|
Return the position of the rightmost bit set. |
|
|
Count number of bits set. |
|
|
Read or write a nibble. |