Read or write a bit.
Source position: syshelph.inc line 1325
public property TQWordHelper.Bits[aIndex: TQwordBitIndex] : Boolean |
Bits property reads or writes boolean value to a bit number determined by argument aIndex.
MyQWord.Clear;// %0000000000000000000000000000000000000000000000000000000000000000 MyQWord equals 0 MyQWord.Bits[0] := true; // %0000000000000000000000000000000000000000000000000000000000000001 MyQWord equals 1 MyQWord.Bits[2] := true; // %0000000000000000000000000000000000000000000000000000000000000101 MyQWord equals 5 WriteLn(MyQWord.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. |
|
|
Read or write a byte. |
|
|
Read or write a word. |
|
|
Read or write a dword. |